1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge pull request #5290 from nniehoff/5282-ldap-logging

Fixing #5282 - moving logging configuration from to configuration.py
This commit is contained in:
Jeremy Stretch
2020-10-30 09:11:12 -04:00
committed by GitHub
2 changed files with 20 additions and 14 deletions

View File

@@ -172,9 +172,4 @@ class LDAPBackend:
if getattr(ldap_config, 'LDAP_IGNORE_CERT_ERRORS', False):
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
# Enable logging for django_auth_ldap
ldap_logger = logging.getLogger('django_auth_ldap')
ldap_logger.addHandler(logging.StreamHandler())
ldap_logger.setLevel(logging.INFO)
return obj