From b64367710bea42e506ee475c9a9b5740fc743b28 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 19:52:32 +0100 Subject: [PATCH] condense logging --- src/cogs/quote_quota.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 580c377..b0e252b 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -205,7 +205,7 @@ class QuoteQuota(commands.Cog): for message in messages: if filter_func(message): age = now - message.created_at - self.log.info("%r was a truth (%.2f seconds ago).", message, age.total_seconds()) + self.log.info("%r was a truth (%.2f seconds ago).", message.id, age.total_seconds()) counts["all_time"] += 1 if message.created_at > now - timedelta(hours=1): counts["hour"] += 1 @@ -233,12 +233,12 @@ class QuoteQuota(commands.Cog): # Pre 6:30pm 15th April, embeds were not tagged for detection. truth = any((_te.type == "rich" for _te in msg.embeds)) if truth: - self.log.info("Found untagged rich trump truth embed %r", msg) + self.log.info("Found untagged rich trump truth embed: %r", msg.id) return True for __t_e in msg.embeds: if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: - self.log.info("Found tagged rich trump truth embed %r", __t_e) + self.log.info("Found tagged rich trump truth embed: %r", msg.id) return True return False