Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

This reverts commit 5b909d1.
  • Loading branch information...
commit 5d8efe74bb025235d62a8aa377fae2729c64a68e 1 parent 36a32de
@rlr rlr authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 log_settings.py
View
9 log_settings.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.