#15628 closed (fixed)
AdminEmailHandler is useless without request in record
Reported by: | Hynek Schlawack | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | logging | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | log-without-request.diff added |
---|
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [15869]: