Skip to content
Snippets Groups Projects
Verified Commit afec8c70 authored by Tanner Prestegard's avatar Tanner Prestegard
Browse files

Set up 'mail_admins' handler for 'django.request' logger in container deployment

parent 0a97259d
No related branches found
No related tags found
No related merge requests found
...@@ -123,3 +123,4 @@ EMBB_IGNORE_ADDRESSES = ['Mailer-Daemon@{fqdn}'.format(fqdn=SERVER_FQDN)] ...@@ -123,3 +123,4 @@ EMBB_IGNORE_ADDRESSES = ['Mailer-Daemon@{fqdn}'.format(fqdn=SERVER_FQDN)]
# Set up logging to stdout only # Set up logging to stdout only
for key in LOGGING['loggers']: for key in LOGGING['loggers']:
LOGGING['loggers'][key]['handlers'] = ['console'] LOGGING['loggers'][key]['handlers'] = ['console']
LOGGING['loggers']['django.request']['handlers'].append('mail_admins')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment