forked from Hay1tsme/artemis
allnet: fix dl report message typo
This commit is contained in:
parent
ab640760a9
commit
ffc0a07f6d
@ -339,9 +339,8 @@ class AllnetServlet:
|
|||||||
self.logger.warning(f"Failed to parse DL Report: Invalid format - {rep.err}")
|
self.logger.warning(f"Failed to parse DL Report: Invalid format - {rep.err}")
|
||||||
return "NG"
|
return "NG"
|
||||||
|
|
||||||
msg = f"{rep.serial} @ {client_ip} reported download state {rep.rf_state} for {rep.gd} v{rep.dav}"\
|
msg = f"{rep.serial} @ {client_ip} reported download state {rep.rf_state} for {rep.gd} v{rep.dav}:"\
|
||||||
f" ordered at {datetime.utcfromtimestamp(rep.ot).isoformat()} UTC:"\
|
f" {rep.tdsc}/{rep.tsc} segments downloaded for working files {rep.wfl} with {rep.dfl if rep.dfl else 'none'} complete."
|
||||||
f" {rep.tdsc}/{rep.tsc} segemnts downloaded for working files {rep.wfl} with {rep.dfl} complete."
|
|
||||||
|
|
||||||
self.data.base.log_event("allnet", "DL_ORDER", logging.INFO, msg, dl_data)
|
self.data.base.log_event("allnet", "DL_ORDER", logging.INFO, msg, dl_data)
|
||||||
self.logger.info(msg)
|
self.logger.info(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user