mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
log: Ability to log SQL queries (disabled by default)
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4956a2a63a
commit
67ac86899a
@ -121,6 +121,11 @@ def get_configuration():
|
|||||||
'root': {
|
'root': {
|
||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
'level': 'DEBUG' if cfg.develop else 'INFO'
|
'level': 'DEBUG' if cfg.develop else 'INFO'
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
'django.db.backends': {
|
||||||
|
'level': 'INFO' # Set to 'DEBUG' to log database queries
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user