Projet

Général

Profil

0001-response-don-t-hide-email-traceback-when-the-sent-fa.patch

Jérôme Schneider, 09 octobre 2014 12:42

Télécharger (1,28 ko)

Voir les différences:

Subject: [PATCH] response: don't hide email traceback when the sent failed

Refs #5394
 mandaye/response.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mandaye/response.py
74 74
    exception: this exception instance if any """
75 75
    if exception:
76 76
        tb_str = _get_traceback()
77
        logger.exception("500 %s: %s, %s, env: %r" % (path, msg, tb_str, env))
77 78
        if email:
78 79
            try:
79 80
                email.sent('internal server error %s' % exception,
80 81
                        _get_text_error(tb_str, path, env=env))
81
            except Exception as detail:
82
                logger.warning('Sent mail failed with error: %s' % detail)
83
        logger.exception("500 %s: %s, %s, env: %r" % (path, msg, tb_str, env))
82
            except Exception, e:
83
                logger.exception(e)
84 84
    else:
85 85
        logger.error("500 %s: %s, env: %r" % (path, msg, env))
86 86
    title = 'Internal Server Error'
87
-