﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21383	Suspicious Operation Error Emails lacks request details	anonymous	nobody	"While using the AdminEmailHandler to log errors the traceback (if available) and request information is included in the email when the BaseHandler handles the request. If the error is a SuspiciousOperation the request information is not included, instead the email just has ""Request repr() unavailable."". 

Including the request details in the logging call is a simple change and provides some useful details in what occurred. The change is in django/core/handlers/base.py on line 177:
{{{
            security_logger.error(force_text(e))
}}}
can be changed to
{{{
            security_logger.error(force_text(e), extra={'status_code': '400', 'request': request})
}}}

"	Cleanup/optimization	closed	Core (Other)	dev	Normal	fixed			Accepted	1	0	1	0	0	0
