Improve cleanup message
This commit is contained in:
parent
06af9449fd
commit
20b36a7c67
|
@ -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")
|
||||||
|
|
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue