From 85131043c1b556c7d109a6f77e1840303a17836f Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 15 Apr 2024 19:55:42 +0100 Subject: [PATCH] Decrease logging verbosity --- src/cogs/quote_quota.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index d7d9208..1066ceb 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.id, age.total_seconds()) + self.log.debug("%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.id) + self.log.debug("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", msg.id) + self.log.debug("Found tagged rich trump truth embed: %r", msg.id) return True return False @@ -256,7 +256,7 @@ class QuoteQuota(commands.Cog): # All the tate truths are already tagged. for __t_e in msg.embeds: if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE: - self.log.info("Found tagged rich tate truth embed %r", __t_e) + self.log.debug("Found tagged rich tate truth embed %r", __t_e) return True return False