diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 00:50:01 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 00:50:01 +0000 |
| commit | aec0a73d73324820c767758afd250fc21a2896ef (patch) | |
| tree | b2c13f772ef0298acb78aa3356b1838e223c24db | |
| parent | 9fb3f7fa932c9214f2b5114e9950529371f93023 (diff) | |
Changed 'coding error' and 'database error' e-mails to include request.path in subject
git-svn-id: http://code.djangoproject.com/svn/django/trunk@548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/handlers/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 63137c74a2..c0e22dbb6a 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -79,7 +79,7 @@ class BaseHandler: if DEBUG: return self.get_technical_error_response() else: - subject = 'Database error (%s IP)' % (request.META['REMOTE_ADDR'] in INTERNAL_IPS and 'internal' or 'EXTERNAL') + subject = 'Database error (%s IP): %s' % ((request.META['REMOTE_ADDR'] in INTERNAL_IPS and 'internal' or 'EXTERNAL'), getattr(request, 'path', '')) message = "%s\n\n%s" % (self._get_traceback(), request) mail_admins(subject, message, fail_silently=True) return self.get_friendly_error_response(request, resolver) @@ -89,7 +89,7 @@ class BaseHandler: if DEBUG: return self.get_technical_error_response() else: - subject = 'Coding error (%s IP)' % (request.META['REMOTE_ADDR'] in INTERNAL_IPS and 'internal' or 'EXTERNAL') + subject = 'Coding error (%s IP): %s' % ((request.META['REMOTE_ADDR'] in INTERNAL_IPS and 'internal' or 'EXTERNAL'), getattr(request, 'path', '')) try: request_repr = repr(request) except: |
