perf: Support django shell run orm output SQL

This commit is contained in:
Bai
2024-04-25 15:08:30 +08:00
committed by Bryan
parent feee92daee
commit 8c4add241d

View File

@@ -136,6 +136,12 @@ LOGGING = {
} }
} }
if CONFIG.DEBUG_DEV:
LOGGING['loggers']['django.db'] = {
'handlers': ['console', 'file'],
'level': 'DEBUG'
}
SYSLOG_ENABLE = CONFIG.SYSLOG_ENABLE SYSLOG_ENABLE = CONFIG.SYSLOG_ENABLE
if CONFIG.SYSLOG_ADDR != '' and len(CONFIG.SYSLOG_ADDR.split(':')) == 2: if CONFIG.SYSLOG_ADDR != '' and len(CONFIG.SYSLOG_ADDR.split(':')) == 2: