Decrease logging verbosity
This commit is contained in:
parent
de7063c3bf
commit
85131043c1
1 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ class QuoteQuota(commands.Cog):
|
||||||
for message in messages:
|
for message in messages:
|
||||||
if filter_func(message):
|
if filter_func(message):
|
||||||
age = now - message.created_at
|
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
|
counts["all_time"] += 1
|
||||||
if message.created_at > now - timedelta(hours=1):
|
if message.created_at > now - timedelta(hours=1):
|
||||||
counts["hour"] += 1
|
counts["hour"] += 1
|
||||||
|
@ -233,12 +233,12 @@ class QuoteQuota(commands.Cog):
|
||||||
# Pre 6:30pm 15th April, embeds were not tagged for detection.
|
# Pre 6:30pm 15th April, embeds were not tagged for detection.
|
||||||
truth = any((_te.type == "rich" for _te in msg.embeds))
|
truth = any((_te.type == "rich" for _te in msg.embeds))
|
||||||
if truth:
|
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
|
return True
|
||||||
|
|
||||||
for __t_e in msg.embeds:
|
for __t_e in msg.embeds:
|
||||||
if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE:
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ class QuoteQuota(commands.Cog):
|
||||||
# All the tate truths are already tagged.
|
# All the tate truths are already tagged.
|
||||||
for __t_e in msg.embeds:
|
for __t_e in msg.embeds:
|
||||||
if __t_e.type == "rich" and __t_e.colour.value == 0x5448EE:
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue