Closed Bug 686947 Opened 13 years ago Closed 13 years ago

No stacktrace emails on mozillians-dev.allizom.org

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ozten, Assigned: jason)

References

Details

I'm seeing a 500 on mozillians-dev.allizom.org, but I'm not getting any stacktrace email.
Blocks: 686949
Assignee: server-ops → jthomas
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?
(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.
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
Closed: 13 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.