summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorPreston Holmes <preston@ptone.com>2012-11-16 16:50:50 -0800
committerPreston Holmes <preston@ptone.com>2012-11-16 17:07:38 -0800
commit44046e8a38225067d4d0feac35367eeae133446a (patch)
treed9b3fac853204f1bbd59e9809c8ca65ff481f7b4 /django/utils
parentb4a98e028adb5b32dcfa7384e46f57b28b43b684 (diff)
Fixed #18985 -- made DeprecationWarnings loud
Capture warnings in Python >= 2.7 and route through console handler, which is subject to DEBUG==True Thanks to dstufft for the idea, and claudep for initial patch
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/log.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/log.py b/django/utils/log.py
index 342ca1fc10..4806527e84 100644
--- a/django/utils/log.py
+++ b/django/utils/log.py
@@ -62,6 +62,9 @@ DEFAULT_LOGGING = {
'level': 'ERROR',
'propagate': False,
},
+ 'py.warnings': {
+ 'handlers': ['console'],
+ },
}
}