Improve format of message sent on cleanup

This commit is contained in:
Mark Veidemanis 2022-05-13 16:21:04 +01:00
parent c8e9368247
commit 6121ddb996
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def cleanup(subclass, references):
for tx, reference in get_ref_map().items(): for tx, reference in get_ref_map().items():
if reference not in references: if reference not in references:
if get_subclass(reference) == subclass: if get_subclass(reference) == subclass:
logmessage = f"Archiving trade reference: {reference} / TX: {tx}" logmessage = f"{reference}: Archiving trade reference. TX: {tx}"
messages.append(logmessage) messages.append(logmessage)
log.info(logmessage) log.info(logmessage)
r.rename(f"trade.{tx}.reference", f"archive.trade.{tx}.reference") r.rename(f"trade.{tx}.reference", f"archive.trade.{tx}.reference")