[extensions-web/deploy] settings: try to simplify logging configuration
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/deploy] settings: try to simplify logging configuration
- Date: Mon, 17 Dec 2018 18:16:04 +0000 (UTC)
commit 5d4397da31ebd10d7e017d8ce9e9a090c298476c
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Dec 17 22:15:51 2018 +0400
settings: try to simplify logging configuration
sweettooth/settings.py | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 322cf4f..f580c06 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -164,34 +164,19 @@ COMMENTS_APP = 'sweettooth.ratings'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
- 'filters': {
- 'require_debug_false': {
- '()': 'django.utils.log.RequireDebugFalse'
- }
- },
'handlers': {
'console': {
'level': 'DEBUG',
'filters': None,
'class': 'logging.StreamHandler',
- },
- 'mail_admins': {
- 'level': 'ERROR',
- 'filters': ['require_debug_false'],
- 'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django': {
- 'handlers': ['console'],
+ 'handlers': ['console', 'mail_admins'],
'level': os.getenv('EGO_LOG_LEVEL', 'WARN'),
'propagate': True,
- },
- 'django.request': {
- 'handlers': ['mail_admins'],
- 'level': 'ERROR',
- 'propagate': True,
- },
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]