I'd like to add some custom annotations on the traceback emails that get 
sent when an exception occurs and DEBUG = False.  For example, we are 
using our own user representation, and would like to include the user 
identity in the traceback. 

I can hack into the code that generates these emails, but I'd rather do 
it as a hook of some sort.  Has this been done before?  Should I create 
a new kind of hook (ERROR_ANNOTATER) to go alonside middleware and 
context processors?  Have I overlooked a simple way to accomplish this 
already?

Alternatively, if I could override the request class used, or the 
__repr__ implementation of the request class, then I could accomplish 
what I want.

-- 
Ned Batchelder, http://nedbatchelder.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to