parent
842a8de945
commit
08f8742e01
|
@ -74,13 +74,13 @@ def _500(path, msg, exception=None, env=None):
|
|||
exception: this exception instance if any """
|
||||
if exception:
|
||||
tb_str = _get_traceback()
|
||||
logger.exception("500 %s: %s, %s, env: %r" % (path, msg, tb_str, env))
|
||||
if email:
|
||||
try:
|
||||
email.sent('internal server error %s' % exception,
|
||||
_get_text_error(tb_str, path, env=env))
|
||||
except Exception as detail:
|
||||
logger.warning('Sent mail failed with error: %s' % detail)
|
||||
logger.exception("500 %s: %s, %s, env: %r" % (path, msg, tb_str, env))
|
||||
except Exception, e:
|
||||
logger.exception(e)
|
||||
else:
|
||||
logger.error("500 %s: %s, env: %r" % (path, msg, env))
|
||||
title = 'Internal Server Error'
|
||||
|
|
Reference in New Issue