Révision 08f8742e
Ajouté par Jérôme Schneider il y a plus de 9 ans
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' |
Formats disponibles : Unified diff
response: don't hide email traceback when the sent failed
Refs #5394