Add ldap3 specific logging
This commit is contained in:
parent
c670eb52e9
commit
8e07151837
1 changed files with 6 additions and 0 deletions
|
@ -237,3 +237,9 @@ if config('ENABLE_DEBUG_LOG', cast=bool, default=False):
|
||||||
loggers_dict.update(logger_item)
|
loggers_dict.update(logger_item)
|
||||||
|
|
||||||
LOGGING['loggers'] = loggers_dict
|
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)
|
||||||
|
|
Loading…
Reference in a new issue