开发者

E-mail traceback on errors in Bottle framework

I am using the Bottle framework. I have set the @error decorator so I am able to display my customized error page, 开发者_如何转开发and i can also send email if any 500 error occurs, but I need the complete traceback to be sent in the email. Does anyone know how to have the framework include that in the e-mail?


in the error500 function written after the @error decorator to serve my customized error page, wrote error.exception and error.traceback, these two give the exception and complete traceback of the error message.


Debugging mode enables full tracebacks:

from bottle import debug
debug(True)

From there, you will need to pipe stderr to a file, then send it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜