Commits

Carl Meyer  committed 553ec7e

ensure handler is always added to logger

  • Participants
  • Parent commits 6ec94c0

Comments (0)

Files changed (4)

 tip (unreleased)
 ----------------
 
+- Ensure errorstack handler is always added to errorstack logger.
+
 0.1 (2009.12.16)
 ----------------
 
 TODO
 ====
 
+- Allow customization of the attributes to report.

File errorstack/__init__.py

+# ensure the errorstack_handler is always added to the errorstack logger
+import errorstack.handlers

File errorstack/middleware.py

 from django.conf import settings as django_settings
 
 from errorstack import settings
-from errorstack.handlers import logger
+
+logger = logging.getLogger(settings.LOGGER_NAME)
 
 class ErrorStackMiddleware(object):