Comment 5 for bug 897515

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I'm having one of those "why is everything so hard" days wrt this :(

It seems to me that we could get something useful fairly quickly by arranging to send unhandled xmlrpc exceptions to syslog. Django 1.3 has some kind of support for configuring logging from settings.py, so I think something like:

LOGGING = {
    'version': 1,
    'handlers': {
        'errorsys': {
            'class': 'logging.handers.SyslogHandler',
            'level': logging.ERROR,
        },
    },
    'loggers': {
        'linaro_django_xmlrpc.models.Dispatcher': {
            'handlers':['errorsys'],
            'propagate': True,
        },
    },
}

plus a change to linaro_django_xmlrpc to not call .exception on the root logger when handling an unhandled exception by default should at least get us to the point where we can see the exceptions.

The real fix is to install sentry I guess, but that seems a bit more involved (need to get sentry server installed somehow, then raven, then configure LOGGING to send stuff to sentry).