Update authentication.py

Modifying the default logging level to `INFO`.
This commit is contained in:
Mathieu Kerjouan 2020-09-30 14:01:36 +00:00 committed by GitHub
parent 22a80c5558
commit fb762cd712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,6 @@ class LDAPBackend:
# Enable logging for django_auth_ldap # Enable logging for django_auth_ldap
ldap_logger = logging.getLogger('django_auth_ldap') ldap_logger = logging.getLogger('django_auth_ldap')
ldap_logger.addHandler(logging.StreamHandler()) ldap_logger.addHandler(logging.StreamHandler())
ldap_logger.setLevel(logging.DEBUG) ldap_logger.setLevel(logging.INFO)
return obj return obj