ItsDrike / code-jam-2024

Python Discord's Code Jam 2024, Contemplative Constellations Team
MIT License
1 stars 0 forks source link

Suppress some spammy py-cord logs #38

Closed ItsDrike closed 1 month ago

ItsDrike commented 1 month ago

When running with DEBUG=0 this isn't a problem, but with DEBUG=1, these py-cord loggers produce a LOT of output. We're not really interested in seeing this and it mostly just clutters our actually useful internal debug logs. This therefore explicitly drops the log level on these loggers to INFO or even WARNING.

Note: Another option would be to suppress all discord loggers completely, at least down to INFO, rather than focusing on the very spammy ones. I'm not sure this is a good idea, since some of the logs are pretty nice to see, like the discord.client ones, producing a log whenever an event occurs.