From 9e89c0b7595858a90864a404066eaba8165804b2 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Fri, 3 Aug 2018 20:21:10 +0200 Subject: Silence `aio_pika.pika.{callback,channel}`'s logging. --- bot/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3