Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adding email logs for admins
  • Loading branch information
xkmato committed Aug 25, 2014
1 parent ce4f1fd commit 7792a10
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion edtrac_project/settings/production.py
Expand Up @@ -12,7 +12,7 @@
ADMINS = (
('Neil Couthinho', 'ncoutin@thoughtworks.com'),
('Chris Ford', 'cford@thoughtworks.com'),
('matlads', 'matlads@gmail.com'),
('Evan', 'evanmwheeler@gmail.com'),
('Kenneth', 'kbonky@gmail.com'),
)
SMS_APPS = [
Expand Down Expand Up @@ -96,6 +96,16 @@
'propagate': False,
}

LOGGING['handlers']['mail_admin'] = {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
}

LOGGING['loggers']['django.request'] = {
'handlers': ['mail_admins'],
'level': 'DEBUG',
'propagate': True,
}
# raven docs say to put SentryResponseErrorIdMiddleware
# 'as high in the chain as possible'
# so this will insert raven into the top of the base
Expand Down

0 comments on commit 7792a10

Please sign in to comment.