Pārlūkot izejas kodu

[core] Add ability to enable DjangoSaml2 and PySaml2 Debug logging

Jenny Kim 10 gadi atpakaļ
vecāks
revīzija
e496a74
2 mainītis faili ar 12 papildinājumiem un 2 dzēšanām
  1. 6 1
      desktop/conf.dist/log.conf
  2. 6 1
      desktop/conf/log.conf

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

@@ -31,6 +31,11 @@ level=INFO
 handlers=errorlog
 qualname=kazoo.client
 
+[logger_djangosaml2]
+level=INFO
+handlers=errorlog
+qualname=djangosaml2
+
 # 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]
@@ -58,7 +63,7 @@ format=[%(asctime)s] %(levelname)-8s %(message)s
 datefmt=%d/%b/%Y %H:%M:%S %z
 
 [loggers]
-keys=root,access,django_auth_ldap,kazoo_client
+keys=root,access,django_auth_ldap,kazoo_client,djangosaml2
 
 [handlers]
 keys=logfile,accesslog,errorlog

+ 6 - 1
desktop/conf/log.conf

@@ -26,6 +26,11 @@ level=INFO
 handlers=errorlog
 qualname=kazoo.client
 
+[logger_djangosaml2]
+level=INFO
+handlers=errorlog
+qualname=djangosaml2
+
 [logger_requests_packages_urllib3_connectionpool]
 level=DEBUG
 handlers=errorlog
@@ -73,7 +78,7 @@ datefmt=%d/%b/%Y %H:%M:%S %z
 ########################################
 
 [loggers]
-keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool
+keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2
 
 [handlers]
 keys=stderr,logfile,accesslog,errorlog