Improve cleanup message

This commit is contained in:
Mark Veidemanis 2022-05-16 08:14:39 +01:00
parent 06af9449fd
commit 20b36a7c67
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 2 additions and 2 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"{reference}: Archiving trade reference. TX: {tx}" logmessage = f"[{reference}] ({subclass}): 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")

View File

@ -186,7 +186,7 @@ class Local(util.Base):
current_trades.append(reference) current_trades.append(reference)
messages = db.cleanup(self.platform, current_trades) messages = db.cleanup(self.platform, current_trades)
for message in messages: for message in messages:
self.ux.irc.sendmsg(f"{self.platform}: {message}") self.ux.irc.sendmsg(message)
def got_recent_messages(self, messages, send_irc=True): def got_recent_messages(self, messages, send_irc=True):
""" """