Ticket #17281: patch.diff

File patch.diff, 1.3 KB (added by elbarto, 13 years ago)
  • AUTHORS

     
    446446    Manuel Saelices <msaelices@yaco.es>
    447447    Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/>
    448448    Vinay Sajip <vinay_sajip@yahoo.co.uk>
     449    Bartolome Sanchez Salado <i42sasab@uco.es>
    449450    Kadesarin Sanjek
    450451    Massimo Scamarcia <massimo.scamarcia@gmail.com>
    451452    Paulo Scardine <paulo@scardine.com.br>
  • django/utils/log.py

     
    5959            )
    6060            request = None
    6161            request_repr = "Request repr() unavailable."
     62        subject = self.make_subject(subject)
    6263
    6364        if record.exc_info:
    6465            exc_info = record.exc_info
     
    7273        html_message = self.include_html and reporter.get_traceback_html() or None
    7374        mail.mail_admins(subject, message, fail_silently=True, html_message=html_message)
    7475
     76    def make_subject(self, subject):
     77        return subject.split('\n')[0]
    7578
     79
    7680class CallbackFilter(logging.Filter):
    7781    """
    7882    A logging filter that checks the return value of a given callable (which
Back to Top