I want to catch any exceptions thrown in my views (or anywhere else, I
suppose) and log a full stack trace.  I know I can write middleware
which implements process_exception(), but that just gets me the naked
exception object, not a full stack dump.  I'm assuming that by the
time my process_exception() method gets called, it's too late to call
sys.exc_info().  Or is it?

I can't use the default DEBUG mechanism which displays the stack trace
in the browser.  For one thing, I want the information in the log.
For another, most of my routes are AJAX calls, so there's nowhere to
display it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to