[damned-lies] fix: do not send database errors to mail_admins



commit 9ea2509bb376b24020ee49b8ad6349191b12dc86
Author: Guillaume Bernard <contact guillaume-bernard fr>
Date:   Fri Apr 29 15:26:27 2022 +0200

    fix: do not send database errors to mail_admins

 damnedlies/settings.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index a51f30e3..40819154 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -205,3 +205,13 @@ if DEBUG:
 if USE_DEBUG_TOOLBAR:
     MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
     INSTALLED_APPS.append('debug_toolbar')
+
+LOGGING = {
+    "disable_existing_loggers": False,
+    "loggers": {
+        "django.db.backends": {
+            "handlers": ["console"],
+            "level": "ERROR"
+        }
+    }
+}


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