Skip to content

Commit 4b04acb

Browse files
authored
Drop log verbosity for forbidden infraction message deletions
1 parent c4e62e4 commit 4b04acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/moderation/infraction/_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def _delete_infraction_message(
122122
except discord.NotFound:
123123
log.warning(f"Channel or message {message_id} not found in channel {channel_id}.")
124124
except discord.Forbidden:
125-
log.warning(f"Bot lacks permissions to delete message {message_id} in channel {channel_id}.")
125+
log.info(f"Bot lacks permissions to delete message {message_id} in channel {channel_id}.")
126126
except discord.HTTPException:
127127
log.exception(f"Issue during scheduled deletion of message {message_id} in channel {channel_id}.")
128128
return # Keep the task in Redis on HTTP errors

0 commit comments

Comments
 (0)