summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-01-03 12:07:19 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-01-03 12:07:19 +0000
commit2a5105ac15baf68c844aa14b68b7af63a2329fc9 (patch)
tree7b14031b7951ea228264c5423556e5193b83ffc8
parent0f783b7f4eac037e22875eeeb6dc85c26b2a65f4 (diff)
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
-rw-r--r--django/utils/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/log.py b/django/utils/log.py
index 75422c72ec..1f6dc52849 100644
--- a/django/utils/log.py
+++ b/django/utils/log.py
@@ -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: