allnet: fix dl report message typo

This commit is contained in:
Hay1tsme 2023-11-01 01:02:09 -04:00
parent ab640760a9
commit ffc0a07f6d

View File

@ -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)