|
|
@@ -175,6 +175,6 @@ class LDAPBackend:
|
|
|
# Enable logging for django_auth_ldap
|
|
|
ldap_logger = logging.getLogger('django_auth_ldap')
|
|
|
ldap_logger.addHandler(logging.StreamHandler())
|
|
|
- ldap_logger.setLevel(logging.DEBUG)
|
|
|
-
|
|
|
+ ldap_logger.setLevel(logging.INFO if settings.DEBUG is False else logging.DEBUG)
|
|
|
+ ldap_logger.info('Set Logging')
|
|
|
return obj
|