Add ldap3 specific logging

This commit is contained in:
PCoder 2019-02-03 10:22:17 +01:00
parent c670eb52e9
commit 8e07151837

View file

@ -237,3 +237,9 @@ if config('ENABLE_DEBUG_LOG', cast=bool, default=False):
loggers_dict.update(logger_item)
LOGGING['loggers'] = loggers_dict
if 'ldap3' in modules_to_log_list:
from ldap3.utils.log import (
set_library_log_detail_level, OFF, BASIC, NETWORK, EXTENDED
)
set_library_log_detail_level(BASIC)