Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Suppress some spammy py-cord logs #38

Merged
merged 1 commit into from
Jul 21, 2024
Merged

Conversation

ItsDrike
Copy link
Owner

@ItsDrike ItsDrike commented Jul 21, 2024

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.

@ItsDrike ItsDrike requested a review from Paillat-dev July 21, 2024 19:53
@ItsDrike ItsDrike force-pushed the suppress-discord-debug-logs branch from 7c86229 to af3838e Compare July 21, 2024 21:19
@ItsDrike ItsDrike merged commit afb235f into main Jul 21, 2024
7 checks passed
@ItsDrike ItsDrike deleted the suppress-discord-debug-logs branch July 21, 2024 21:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants