Explorar o código

HUE-2571 [core] django_auth_ldap module DEBUG logging

Michalis Kongtongk %!s(int64=10) %!d(string=hai) anos
pai
achega
2076e40316
Modificáronse 2 ficheiros con 10 adicións e 2 borrados
  1. 5 1
      desktop/conf.dist/log.conf
  2. 5 1
      desktop/conf/log.conf

+ 5 - 1
desktop/conf.dist/log.conf

@@ -22,6 +22,10 @@ handlers=logfile,errorlog
 handlers=accesslog
 qualname=access
 
+[logger_django_auth_ldap]
+handlers=accesslog
+qualname=django_auth_ldap
+
 # The logrotation limit is set at 5MB per file for a total of 5 copies.
 # I.e. 25MB for each set of logs.
 [handler_accesslog]
@@ -49,7 +53,7 @@ format=[%(asctime)s] %(levelname)-8s %(message)s
 datefmt=%d/%b/%Y %H:%M:%S %z
 
 [loggers]
-keys=root,access
+keys=root,access,django_auth_ldap
 
 [handlers]
 keys=logfile,accesslog,errorlog

+ 5 - 1
desktop/conf/log.conf

@@ -17,6 +17,10 @@ handlers=logfile,errorlog
 handlers=accesslog
 qualname=access
 
+[logger_django_auth_ldap]
+handlers=accesslog
+qualname=django_auth_ldap
+
 [handler_stderr]
 class=StreamHandler
 formatter=default
@@ -59,7 +63,7 @@ datefmt=%d/%b/%Y %H:%M:%S %z
 ########################################
 
 [loggers]
-keys=root,access
+keys=root,access,django_auth_ldap
 
 [handlers]
 keys=stderr,logfile,accesslog,errorlog