mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
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:
parent
0f783b7f4e
commit
2a5105ac15
@ -71,7 +71,7 @@ class AdminEmailHandler(logging.Handler):
|
|||||||
subject = '%s (%s IP): %s' % (
|
subject = '%s (%s IP): %s' % (
|
||||||
record.levelname,
|
record.levelname,
|
||||||
(request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'),
|
(request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'),
|
||||||
request.path
|
record.msg
|
||||||
)
|
)
|
||||||
request_repr = repr(request)
|
request_repr = repr(request)
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user