Skip to content

Commit

Permalink
loggers: Set propagate False for zulip.slow_queries logger.
Browse files Browse the repository at this point in the history
This will prevent it to propagating to root logger and causing flaky
behavior in tests which verify logs by root logger using assertLogs.
  • Loading branch information
thedeveloperr authored and timabbott committed Jul 23, 2020
1 parent e25365e commit 7bbba74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zproject/computed_settings.py
Original file line number Diff line number Diff line change
@@ -927,6 +927,7 @@ def zulip_path(path: str) -> str:
'zulip.slow_queries': {
'level': 'INFO',
'handlers': ['slow_queries_file'],
'propagate': False,
},
'zulip.soft_deactivation': {
'handlers': ['file', 'errors_file'],

0 comments on commit 7bbba74

Please sign in to comment.