Fixed #14973 -- Tweaked the email log handler so that the log message is actually reported.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-01-03 12:07:19 +00:00
parent 0f783b7f4e
commit 2a5105ac15
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class AdminEmailHandler(logging.Handler):
subject = '%s (%s IP): %s' % (
record.levelname,
(request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'),
request.path
record.msg
)
request_repr = repr(request)
except: