Permalink
Browse files

Add django.request to default excluded loggers

  • Loading branch information...
1 parent be51cb5 commit f431924ccfeaaea69fb82df3a61a71e5bbab8df2 @dcramer dcramer committed Oct 14, 2012
Showing with 9 additions and 5 deletions.
  1. +9 −5 raven/conf/__init__.py
View
@@ -9,9 +9,16 @@
import logging
from raven.utils.urlparse import urlparse
-
__all__ = ('load', 'setup_logging')
+EXCLUDE_LOGGER_DEFAULTS = (
+ 'raven',
+ 'gunicorn',
+ 'south',
+ 'sentry.errors',
+ 'django.request',
+)
+
# TODO (vng): this seems weirdly located in raven.conf. Seems like
# it's really a part of raven.transport.TransportRegistry
@@ -49,10 +56,7 @@ def load(dsn, scope=None, transport_registry=None):
return scope
-def setup_logging(handler, exclude=['raven',
- 'gunicorn',
- 'south',
- 'sentry.errors']):
+def setup_logging(handler, exclude=EXCLUDE_LOGGER_DEFAULTS):
"""
Configures logging to pipe to Sentry.

0 comments on commit f431924

Please sign in to comment.