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

Commit

Permalink
Merge pull request #38 from ItsDrike/suppress-discord-debug-logs
Browse files Browse the repository at this point in the history
Suppress some spammy py-cord logs
  • Loading branch information
ItsDrike authored Jul 21, 2024
2 parents f86d72b + af3838e commit afb235f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def _setup_external_log_levels(root_log: LoggerClass) -> None:
set explicitly here, avoiding unneeded spammy logs.
"""
get_logger("asyncio").setLevel(logging.INFO)
get_logger("discord.http").setLevel(logging.INFO)
get_logger("discord.gateway").setLevel(logging.WARNING)
get_logger("aiosqlite").setLevel(logging.INFO)
get_logger("alembic.runtime.migration").setLevel(logging.WARNING)

Expand Down

0 comments on commit afb235f

Please sign in to comment.