#15628: AdminEmailHandler is useless without request in record
--------------------------+---------------------------
 Reporter:  hynek         |         Owner:  nobody
   Status:  new           |     Milestone:  1.3
Component:  Contrib apps  |       Version:  SVN
 Keywords:  logging       |  Triage Stage:  Unreviewed
Has patch:  1             |
--------------------------+---------------------------
 There is an obvious bug inside django/utils/log.py.

 If no request is supplied with the LogRecord, the subject of the mail is
 set flatly to "Error: Unknown URL". This contradicts the docs
 (http://docs.djangoproject.com/en/dev/topics/logging/#id2).

 The attached patch fixes that by setting the subject the same way as
 before but omitting the IP if no request has been supplied.

 It would be awesome if that could make it into 1.3.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15628>
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.

Reply via email to