[damned-lies/oscp-testing] Test to prevent django from sending db errors
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp-testing] Test to prevent django from sending db errors
- Date: Fri, 29 Apr 2022 14:25:14 +0000 (UTC)
commit 6d4e63e6584a4484b7e60f557977fb03c3927e2b
Author: Guillaume Bernard <contact guillaume-bernard fr>
Date: Fri Apr 29 16:25:09 2022 +0200
Test to prevent django from sending db errors
local_settings.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/local_settings.py b/local_settings.py
index 954eb84a..5c7a86c7 100644
--- a/local_settings.py
+++ b/local_settings.py
@@ -62,3 +62,20 @@ RAVEN_CONFIG = {"dsn": "$SENTRY_DSN"}
GITLAB_TOKEN = "$GITLAB_TOKEN"
VCS_HOME_REGEX = "gitlab\.gnome\.org"
+
+LOGGING = {
+ "version": 1,
+ "disable_existing_loggers": False,
+ "handlers": {
+ 'console': {
+ "level": "INFO",
+ "class": "logging.StreamHandler",
+ },
+ },
+ "loggers": {
+ "django.db.backends": {
+ "handlers": ["console"],
+ "level": "ERROR"
+ }
+ }
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]