aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-08-06 16:28:23 +0000
committerGravatar Gareth Coles <[email protected]>2018-08-06 16:28:23 +0000
commit04d1e21da9379c17be36ee202fc1ada8cb6d9fd1 (patch)
tree820a23c1457f017ba5e1652017ccda01fddcc9b0
parentsetting links max to 20 while we work on issue 47 (diff)
parentSilence `aio_pika.pika.{callback,channel}`'s logging. (diff)
Merge branch 'enhancement/bump-pika-logging-level' into 'master'
Silence `aio_pika.pika.{callback,channel}`'s logging. Closes #21 See merge request python-discord/projects/bot!51
-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)