Permalink
Browse files

Revert "Revert "Add logger for 'django.request'""

This reverts commit 5b909d1.
  • Loading branch information...
1 parent 36a32de commit 5d8efe74bb025235d62a8aa377fae2729c64a68e @rlr rlr committed Oct 10, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 log_settings.py
View
@@ -38,13 +38,20 @@
'propogate': True,
# Use the most permissive setting. It is filtered in the handlers.
'level': logging.DEBUG,
- }
+ },
+ 'django.request': {
+ 'handlers': ['syslog', 'mail_admins'],
+ 'propogate': True,
+ # Use the most permissive setting. It is filtered in the handlers.
+ 'level': logging.DEBUG,
+ },
},
}
if settings.DEBUG:
config['formatters']['default']['datefmt'] = '%H:%M:%S'
config['loggers']['k']['handlers'] = ['console']
+ config['loggers']['django.request']['handlers'] = ['console']
else:
task_log = logging.getLogger('k.celery')
task_proxy = celery.log.LoggingProxy(task_log)

0 comments on commit 5d8efe7

Please sign in to comment.