allnet: further dl report logging

This commit is contained in:
Hay1tsme 2023-11-01 01:17:23 -04:00
parent ffc0a07f6d
commit bd3e1918aa

View File

@ -339,7 +339,7 @@ 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 {rep.__type.name} download state {rep.rf_state} for {rep.gd} v{rep.dav}:"\
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} segments downloaded for working files {rep.wfl} with {rep.dfl if rep.dfl else 'none'} 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)