From 67ac86899a8e831c95083cac0937914f367f6c68 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 3 Feb 2020 18:59:39 -0800 Subject: [PATCH] log: Ability to log SQL queries (disabled by default) Reviewed-by: James Valleroy --- plinth/log.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plinth/log.py b/plinth/log.py index 86059fec5..3e0819141 100644 --- a/plinth/log.py +++ b/plinth/log.py @@ -121,6 +121,11 @@ def get_configuration(): 'root': { 'handlers': ['console'], 'level': 'DEBUG' if cfg.develop else 'INFO' + }, + 'loggers': { + 'django.db.backends': { + 'level': 'INFO' # Set to 'DEBUG' to log database queries + } } }