Browse files

Added a couple more loggers to settings

  • Loading branch information...
1 parent e1a6ae8 commit 1a2e58c11a87f59d16c971d7ba9f9242a8b9cde5 @whiteinge whiteinge committed Feb 21, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 settings/__init__.py
View
14 settings/__init__.py
@@ -111,8 +111,22 @@
'level': 'DEBUG',
'class': 'sentry.client.handlers.SentryHandler',
},
+ 'mail_admins': {
+ 'level': 'ERROR',
+ 'class': 'django.utils.log.AdminEmailHandler'
+ },
+ 'file':{
+ 'level': 'DEBUG',
+ 'class': 'logging.FileHandler',
+ 'filename': '/tmp/django.log',
+ },
},
'loggers': {
+ # 'django.request': {
+ # 'handlers': ['mail_admins', 'file'],
+ # 'level': 'ERROR',
+ # 'propagate': True,
+ # },
'saltstack.sentry': {
'handlers': ['saltsentry'],
'level': 'DEBUG',

0 comments on commit 1a2e58c

Please sign in to comment.