settings: Fix duplicate logging from zulip.auth logger.

The logger defines a full list of handlers, meaning propagate=False is
needed, to avoid the log line propagating further up the logging tree
and getting logged multiple times by the duplicated handlers.
This commit is contained in:
Mateusz Mandera 2020-06-09 23:54:59 +02:00 committed by Tim Abbott
parent dc90d54b08
commit 90f3882512
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,8 @@ LOGGING: Dict[str, Any] = {
}, },
'zulip.auth': { 'zulip.auth': {
'level': 'DEBUG', 'level': 'DEBUG',
'handlers': DEFAULT_ZULIP_HANDLERS + ['auth_file'] 'handlers': DEFAULT_ZULIP_HANDLERS + ['auth_file'],
'propagate': False,
}, },
'zulip.ldap': { 'zulip.ldap': {
'level': 'DEBUG', 'level': 'DEBUG',