From 7bbba74d9535e4477c7fe9bfb487d18961ae3dd9 Mon Sep 17 00:00:00 2001 From: Mohit Gupta Date: Thu, 23 Jul 2020 00:38:11 +0530 Subject: [PATCH] loggers: Set propagate False for zulip.slow_queries logger. This will prevent it to propagating to root logger and causing flaky behavior in tests which verify logs by root logger using assertLogs. --- zproject/computed_settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index eb4771f586..017fd1af44 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -927,6 +927,7 @@ LOGGING: Dict[str, Any] = { 'zulip.slow_queries': { 'level': 'INFO', 'handlers': ['slow_queries_file'], + 'propagate': False, }, 'zulip.soft_deactivation': { 'handlers': ['file', 'errors_file'],