Skip to content

Commit

Permalink
refactor: only warn admins on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-Ulens committed Jan 22, 2023
1 parent a5e31bf commit 823aab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/log/discord_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def send_embed(self, record: LogRecord):

tag_msg = ""
if (
(record.levelno == logging.ERROR or record.levelno == logging.WARNING)
record.levelno == logging.ERROR
and guild_config is not None
and guild_config.admin_role is not None
):
Expand Down

0 comments on commit 823aab8

Please sign in to comment.