#13850: Make handle_uncaught_exception() more easily patch-able
-------------------------------------+--------------------------------------
Reporter: leonidg | Owner: nobody
Status: closed | Milestone:
Component: Core framework | Version: SVN
Resolution: invalid | Keywords: mail, unhandlederror,
http500
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by brodie):
* status: new => closed
* resolution: => invalid
Comment:
Django 1.3's logging framework allows you to configure what's invoked when
there's an uncaught exception. E.g.,
{{{
#!python
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'foo.FooLogHandler'
}
},
'loggers': {
'django.request':{
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
}}}
Where `foo.FooLogHandler` is your own handler that fires off an email in
the format you prefer.
--
Ticket URL: <http://code.djangoproject.com/ticket/13850#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.