From e29d1fc77687740cd1f02014936f05aa44955c81 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 7 May 2020 11:55:11 -0700 Subject: [PATCH] settings: Clean up pika logging. It appears that a recent pika release started logging spammy INFO output on the pika.connection and pika.channel channels, in addition to the existing pika.adapters channel. It's probably best to just move to WARNING-level logging for all of these. This significantly cleans up the output when run-dev.py restarts services due to a code change in the development environment. --- zproject/settings.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zproject/settings.py b/zproject/settings.py index 26f2322f7a..72612e66f3 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -850,7 +850,7 @@ LOGGING: Dict[str, Any] = { 'handlers': ['console', 'ldap_file', 'errors_file'], 'propagate': False, }, - 'pika.adapters': { + 'pika': { # pika is super chatty on INFO. 'level': 'WARNING', # pika spews a lot of ERROR logs when a connection fails. @@ -859,11 +859,6 @@ LOGGING: Dict[str, Any] = { 'handlers': ['console', 'file', 'errors_file'], 'propagate': False, }, - 'pika.connection': { - # Leave `zulip_admins` out of the handlers. See pika.adapters above. - 'handlers': ['console', 'file', 'errors_file'], - 'propagate': False, - }, 'requests': { 'level': 'WARNING', },