summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-01-07 10:16:08 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-01-07 10:16:08 (GMT)
commit914d3ec547752ae251c696bc766b4ceed5863e3a (patch)
tree01aa426c895a547c724a0676edd227e0dca5faff
parentb6b7bbef8b8aa0ead3a35828ef57bb00beaa7d1c (diff)
downloadunivnautes-old-914d3ec547752ae251c696bc766b4ceed5863e3a.zip
univnautes-old-914d3ec547752ae251c696bc766b4ceed5863e3a.tar.gz
univnautes-old-914d3ec547752ae251c696bc766b4ceed5863e3a.tar.bz2
pfidp: fix deprecation warning on mail_admins LOGGING
-rw-r--r--virtualenv/pfidp/settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/virtualenv/pfidp/settings.py b/virtualenv/pfidp/settings.py
index 69a845d..7c14261 100644
--- a/virtualenv/pfidp/settings.py
+++ b/virtualenv/pfidp/settings.py
@@ -261,6 +261,11 @@ LOGGING = {
'datefmt': '%Y-%m-%d %a %H:%M:%S'
},
},
+ 'filters': {
+ 'require_debug_false': {
+ '()': 'django.utils.log.RequireDebugFalse'
+ }
+ },
'handlers': {
'null': {
'level':'DEBUG',
@@ -283,6 +288,7 @@ LOGGING = {
},
'mail_admins': {
'level': 'ERROR',
+ 'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler',
'include_html': True,
}