Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloseSupport, ModMessage: reduce log levels #100

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading