aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-03 20:21:10 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-03 20:21:10 +0200
commit9e89c0b7595858a90864a404066eaba8165804b2 (patch)
tree29f10449d50c91a39165eafd4f10d7aa5f0e8791
parentMerge branch 'roles-command-restriction' into 'master' (diff)
Silence `aio_pika.pika.{callback,channel}`'s logging.
-rw-r--r--bot/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index df168cba4..5a446d71c 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -88,7 +88,9 @@ for key, value in logging.Logger.manager.loggerDict.items():
value.addHandler(handler)
-# Silence discord and websockets
+# Silence aio_pika.pika.{callback,channel}, discord, PIL, and and websockets
+logging.getLogger("aio_pika.pika.callback").setLevel(logging.ERROR)
+logging.getLogger("aio_pika.pika.channel").setLevel(logging.ERROR)
logging.getLogger("discord.client").setLevel(logging.ERROR)
logging.getLogger("discord.gateway").setLevel(logging.ERROR)
logging.getLogger("discord.state").setLevel(logging.ERROR)