perf: Support django shell run orm output SQL

pull/13136/head
Bai 2024-04-25 15:08:30 +08:00 committed by Bryan
parent feee92daee
commit 8c4add241d
1 changed files with 6 additions and 0 deletions

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
if CONFIG.SYSLOG_ADDR != '' and len(CONFIG.SYSLOG_ADDR.split(':')) == 2: