Explorar o código

HUE-4537 [core] Fix database_logging in hue config so it logs debug database messages

Jenny Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
17585b7
Modificáronse 2 ficheiros con 12 adicións e 2 borrados
  1. 6 1
      desktop/conf.dist/log.conf
  2. 6 1
      desktop/conf/log.conf

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

@@ -36,6 +36,11 @@ level=INFO
 handlers=errorlog
 qualname=djangosaml2
 
+[logger_django_db]
+level=DEBUG
+handlers=errorlog
+qualname=django.db.backends
+
 # 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]
@@ -63,7 +68,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,djangosaml2
+keys=root,access,django_auth_ldap,kazoo_client,djangosaml2,django_db
 
 [handlers]
 keys=logfile,accesslog,errorlog

+ 6 - 1
desktop/conf/log.conf

@@ -36,6 +36,11 @@ level=DEBUG
 handlers=errorlog
 qualname=requests.packages.urllib3.connectionpool
 
+[logger_django_db]
+level=DEBUG
+handlers=errorlog
+qualname=django.db.backends
+
 [handler_stderr]
 class=StreamHandler
 formatter=default
@@ -78,7 +83,7 @@ datefmt=%d/%b/%Y %H:%M:%S %z
 ########################################
 
 [loggers]
-keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2
+keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db
 
 [handlers]
 keys=stderr,logfile,accesslog,errorlog