Skip to content

Commit

Permalink
CloseSupport, ModMessage: reduce log levels (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacG authored Mar 24, 2024
1 parent ab73f50 commit e627249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cogs/close_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def on_thread_update(self, before, after) -> None:
return
if not after.archived or after.locked:
return
logger.info("Locking thread %d due to thread archival.", after.id)
logger.debug("Locking thread %d due to thread archival.", after.id)
await after.edit(archived=False)
await asyncio.sleep(1)
await after.edit(locked=True, archived=True)
Expand Down Expand Up @@ -69,6 +69,6 @@ async def on_raw_reaction_add(self, payload) -> None:
):
return

logger.info("Locking thread %d due to owner resolving it.", payload.channel_id)
logger.debug("Locking thread %d due to owner resolving it.", payload.channel_id)
await thread.edit(locked=True)
PROM_CLOSED.inc()
2 changes: 1 addition & 1 deletion cogs/mod_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def mod_message(
return

extra = {"tags": {"message": message.value, "sender": member.display_name}}
logger.info("Sending canned message %s.", message.value, extra=extra)
logger.debug("Sending canned message %s.", message.value, extra=extra)
await interaction.response.send_message(
"Sending canned message.",
ephemeral=True,
Expand Down

0 comments on commit e627249

Please sign in to comment.