Skip to content

Commit

Permalink
Lower discordpy error logging
Browse files Browse the repository at this point in the history
DiscordPy catches all errors being handled so setting to critical hides errors we might be generating
  • Loading branch information
Dom-TC committed Nov 8, 2023
1 parent 1992788 commit 3227261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botto/run_botto.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Configure logging
logging.config.fileConfig(fname="log.conf", disable_existing_loggers=False)
logging.getLogger("discord").setLevel(logging.CRITICAL)
logging.getLogger("discord").setLevel(logging.ERROR)
logging.getLogger("discord.gateway").setLevel(logging.INFO)
logging.getLogger("asyncio").setLevel(logging.CRITICAL)
logging.getLogger("urllib").setLevel(logging.CRITICAL)
Expand Down

0 comments on commit 3227261

Please sign in to comment.