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.
This commit is contained in:
Mohit Gupta 2020-07-23 00:38:11 +05:30 committed by Tim Abbott
parent e25365ee3e
commit 7bbba74d95
1 changed files with 1 additions and 0 deletions

View File

@ -927,6 +927,7 @@ LOGGING: Dict[str, Any] = {
'zulip.slow_queries': { 'zulip.slow_queries': {
'level': 'INFO', 'level': 'INFO',
'handlers': ['slow_queries_file'], 'handlers': ['slow_queries_file'],
'propagate': False,
}, },
'zulip.soft_deactivation': { 'zulip.soft_deactivation': {
'handlers': ['file', 'errors_file'], 'handlers': ['file', 'errors_file'],