[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:10:31 +0000 (UTC)
commit e3834c12da14fb872cd570fa1c1b9f078c36b703
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Dec 17 22:10:22 2018 +0400
settings: try to simplify logging configuration
sweettooth/settings.py | 27 +++------------------------
1 file changed, 3 insertions(+), 24 deletions(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 322cf4f..3a94818 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -162,36 +162,15 @@ COMMENTS_APP = 'sweettooth.ratings'
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
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'
+ 'filters': None
}
},
'loggers': {
'django': {
- 'handlers': ['console'],
- 'level': os.getenv('EGO_LOG_LEVEL', 'WARN'),
- 'propagate': True,
- },
- 'django.request': {
- 'handlers': ['mail_admins'],
- 'level': 'ERROR',
- 'propagate': True,
- },
+ 'level': os.getenv('EGO_LOG_LEVEL', 'WARN')
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]