[extensions-web/deploy] settings: remove django.server logger
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/deploy] settings: remove django.server logger
- Date: Mon, 17 Dec 2018 19:38:12 +0000 (UTC)
commit 6bd62d754bb3934c0e06077ebd3a41b3100af848
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Dec 17 23:38:02 2018 +0400
settings: remove django.server logger
sweettooth/settings.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 2e5b070..784f3fd 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -165,7 +165,12 @@ from django.utils.log import DEFAULT_LOGGING as LOGGING
LOGGING["handlers"]["console"]["filters"] = None
LOGGING["handlers"]["console"]["level"] = "DEBUG"
-LOGGING["loggers"]["django"]["level"] = os.getenv('EGO_LOG_LEVEL', 'WARN')
+LOGGING["loggers"] = {
+ 'django': {
+ 'handlers': ['console', 'mail_admins'],
+ 'level': os.getenv('EGO_LOG_LEVEL', 'WARN'),
+ }
+}
DEFAULT_FROM_EMAIL = "noreply gnome org"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]