Ticket #15628: log-without-request.diff
File log-without-request.diff, 519 bytes (added by , 14 years ago) |
---|
-
django/utils/log.py
diff --git a/django/utils/log.py b/django/utils/log.py index 763e667..4fb75b1 100644
a b class AdminEmailHandler(logging.Handler): 79 79 ) 80 80 request_repr = repr(request) 81 81 except: 82 subject = 'Error: Unknown URL' 82 subject = '%s: %s' % ( 83 record.levelname, 84 record.msg 85 ) 86 83 87 request = None 84 88 request_repr = "Request repr() unavailable" 85 89