Skip to content

Commit

Permalink
Merge pull request #31 from Tibo-Ulens/dev
Browse files Browse the repository at this point in the history
refactor: only warn admins on errors
  • Loading branch information
Tibo-Ulens authored Jan 22, 2023
2 parents a5e31bf + 823aab8 commit d95743b
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 d95743b

Please sign in to comment.