No stacktrace emails on mozillians-dev.allizom.org

RESOLVED FIXED

Status

mozilla.org Graveyard
Server Operations
RESOLVED FIXED
6 years ago
3 years ago

People

(Reporter: ozten, Assigned: jason)

Tracking

Details

(Reporter)

Description

6 years ago
I'm seeing a 500 on mozillians-dev.allizom.org, but I'm not getting any stacktrace email.
(Reporter)

Updated

6 years ago
Blocks: 686949
(Assignee)

Updated

6 years ago
Assignee: server-ops → jthomas
(Assignee)

Comment 1

6 years ago
Currently mozillians-dev.allizom.org is logging to syslog.

I am not seeing in settings/default.py for LOGGING a handler or logger setup to send mail on ERROR.

Could you please add this?
(Reporter)

Comment 2

6 years ago
(In reply to Jason Thomas [:jason] from comment #1)

Good point.

This broken when we moved from settings_local.py to settings/local.py.

Can you add it to local.py? This varies across environments, so this non-repo config file is the best place.

settings/local.py-dist has a skeleton for the setting value.
(Assignee)

Comment 3

6 years ago
Configured and tested.

diff /var/tmp/jthomas/local.py local.py
31a32,48
> # Set up logging to send emails on 500 errors
> LOGGING = {
>     'handlers': {
>         'mail_admins': {
>             'level': 'ERROR',
>             'class': 'django.utils.log.AdminEmailHandler',
>         },
>     },
>     'loggers': {
>         'django.request': {
>             'handlers': ['mail_admins'],
>             'level': 'ERROR',
>             'propagate': False,
>         },
>     }
> }
>
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.