From 6121ddb9968e2a005283b665d6908e2a53d7db4b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 13 May 2022 16:21:04 +0100 Subject: [PATCH] Improve format of message sent on cleanup --- handler/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/db.py b/handler/db.py index a4d36cc..6a82921 100644 --- a/handler/db.py +++ b/handler/db.py @@ -129,7 +129,7 @@ def cleanup(subclass, references): for tx, reference in get_ref_map().items(): if reference not in references: if get_subclass(reference) == subclass: - logmessage = f"Archiving trade reference: {reference} / TX: {tx}" + logmessage = f"{reference}: Archiving trade reference. TX: {tx}" messages.append(logmessage) log.info(logmessage) r.rename(f"trade.{tx}.reference", f"archive.trade.{tx}.reference")