Adding logging to sysadm@bornhack.org
This commit is contained in:
parent
869f5a8fe9
commit
2cc5a0512f
|
@ -20,3 +20,29 @@ EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD')
|
|||
EMAIL_USE_TLS = env('EMAIL_USE_TLS')
|
||||
DEFAULT_FROM_EMAIL = env('DEFAULT_FROM_EMAIL')
|
||||
SERVER_EMAIL = env('DEFAULT_FROM_EMAIL')
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'handlers': {
|
||||
'mail_admins': {
|
||||
'level': 'ERROR',
|
||||
'class': 'django.utils.log.AdminEmailHandler',
|
||||
},
|
||||
'console': {
|
||||
'level':'DEBUG',
|
||||
'class':'logging.StreamHandler',
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'django.request': {
|
||||
'handlers': ['mail_admins'],
|
||||
'level': 'ERROR',
|
||||
'propagate': True,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
ADMINS = (
|
||||
('bornhack sysadm', 'sysadm@bornhack.org'),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue