[damned-lies/develop] feat: output db errors in console by default



commit 28d70375d7d26bdd4b19a4dbcea1e967dd683449
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date:   Mon Sep 5 14:39:00 2022 +0200

    feat: output db errors in console by default

 damnedlies/settings.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index 55ece015..b51d0168 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -198,6 +198,22 @@ try:
 except ImportError:
     pass
 
+LOGGING = {
+    "version": 1,
+    "disable_existing_loggers": False,
+    "handlers": {
+        "console": {
+            "class": "logging.StreamHandler",
+        },
+    },
+    "loggers": {
+        "django.db.backends": {
+            "handlers": ["console"],
+            "level": "ERROR",
+        },
+    }
+}
+
 # When running in development mode, print emails on stdout instead of trying
 # to send them
 if DEBUG:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]