diff options
| author | 2021-01-04 17:21:56 -0800 | |
|---|---|---|
| committer | 2021-01-04 23:20:03 -0800 | |
| commit | bc381bcf16cef694755ff4191d4ee95d7691798a (patch) | |
| tree | 9be54681d0d560c518df739d603578fd03b57d53 | |
| parent | HelpChannels: fix unclaim exiting too early if claimant is None (diff) | |
Set asyncio logger level to INFO
If asyncio's debug mode is enabled, the asyncio logger's level gets set
to DEBUG. While other features of the debug mode are useful, the DEBUG
log level spams generally irrelevant stuff.
| -rw-r--r-- | bot/log.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/log.py b/bot/log.py index 0935666d1..e92233a33 100644 --- a/bot/log.py +++ b/bot/log.py @@ -54,6 +54,9 @@ def setup() -> None: logging.getLogger("chardet").setLevel(logging.WARNING) logging.getLogger("async_rediscache").setLevel(logging.WARNING) + # Set back to the default of INFO even if asyncio's debug mode is enabled. + logging.getLogger("asyncio").setLevel(logging.INFO) + def setup_sentry() -> None: """Set up the Sentry logging integrations.""" |