Ticket #17281: patch.diff
File patch.diff, 1.3 KB (added by , 13 years ago) |
---|
-
AUTHORS
446 446 Manuel Saelices <msaelices@yaco.es> 447 447 Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/> 448 448 Vinay Sajip <vinay_sajip@yahoo.co.uk> 449 Bartolome Sanchez Salado <i42sasab@uco.es> 449 450 Kadesarin Sanjek 450 451 Massimo Scamarcia <massimo.scamarcia@gmail.com> 451 452 Paulo Scardine <paulo@scardine.com.br> -
django/utils/log.py
59 59 ) 60 60 request = None 61 61 request_repr = "Request repr() unavailable." 62 subject = self.make_subject(subject) 62 63 63 64 if record.exc_info: 64 65 exc_info = record.exc_info … … 72 73 html_message = self.include_html and reporter.get_traceback_html() or None 73 74 mail.mail_admins(subject, message, fail_silently=True, html_message=html_message) 74 75 76 def make_subject(self, subject): 77 return subject.split('\n')[0] 75 78 79 76 80 class CallbackFilter(logging.Filter): 77 81 """ 78 82 A logging filter that checks the return value of a given callable (which