Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a couple more loggers to settings

  • Loading branch information...
commit 1a2e58c11a87f59d16c971d7ba9f9242a8b9cde5 1 parent e1a6ae8
Seth House whiteinge authored

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. +14 0 settings/__init__.py
14 settings/__init__.py
@@ -111,8 +111,22 @@
111 111 'level': 'DEBUG',
112 112 'class': 'sentry.client.handlers.SentryHandler',
113 113 },
  114 + 'mail_admins': {
  115 + 'level': 'ERROR',
  116 + 'class': 'django.utils.log.AdminEmailHandler'
  117 + },
  118 + 'file':{
  119 + 'level': 'DEBUG',
  120 + 'class': 'logging.FileHandler',
  121 + 'filename': '/tmp/django.log',
  122 + },
114 123 },
115 124 'loggers': {
  125 + # 'django.request': {
  126 + # 'handlers': ['mail_admins', 'file'],
  127 + # 'level': 'ERROR',
  128 + # 'propagate': True,
  129 + # },
116 130 'saltstack.sentry': {
117 131 'handlers': ['saltsentry'],
118 132 'level': 'DEBUG',

0 comments on commit 1a2e58c

Please sign in to comment.
Something went wrong with that request. Please try again.