Web错误处理和异常捕获
WebError的Python项目详细描述
注意
此软件未得到有效维护。简单的错误修复和其他修补程序 将被接受,并释放。
简介
weberror为错误的调试和处理提供了wsgi中间件。 在wsgi应用程序内部。
用法
有两个主要的wsgi中间件组件:
weberror.error middleware.make_error_中间件
此中间件应用于生产部署的应用程序,并使用 跟踪有关发生错误的额外信息。这些错误条目可以 另外,使用error电子邮件发送到给定的电子邮件地址 选择。示例用法:
from weberror.errormiddleware import make_error_middleware app = make_error_middleware(app, global_conf)
weberror.eval exception.make_eval_exception
此中间件用于在 开发,不应用于生产。示例用法:
from weberror.evalexception import make_eval_exception app = make_eval_exception(app, global_conf)
Weberror更改日志
0.13.1(2016年4月9日)
- Fixed an +1 issues with the fix in pull request #14 breaking the previous version. This was fixed in https://github.com/Pylons/weberror/pull/16
0.13(2016年3月15日)
- Fixed an issue with the debug view detection that was causing failures when WebError was used with pyramid_debugtoolbar. See: https://github.com/Pylons/weberror/pull/14
0.12(2016年2月8日)
- Fixed an CSRF verification error when the token was of type unicode. See: https://github.com/Pylons/weberror/pull/11
0.11(2015年7月21日)
- Remove XSS issues by requiring a CSRF token for relay commands. Patch by Jordan Milne.
0.10.3(2010年9月11日)
- Don’t require simplejson on Python 2.6
0.10.2(2010年12月2日)
- Fix bug when displaying UTF-8 type errors.
- Fix bug when emailing data with UTF-8.
0.10.1(2008年12月29日)
- Fix view source when __file__ is .pyo or $py.class.
0.10(2008年12月18日)
- Fix indentation of code lines in the traceback view.
- Enable syntax highlighting in view source.
- Fix a case where the response could become unicode; fix the docstring patching when using python -O
0.9.1(2008年10月28日)
- Python 2.6 compatibility
- Making main page links more accessible to browsers with no JS on per Pylons Trac ticket #489.
0.9(2008年8月7日)
- Switched to using Pygments for highlighting.
- Added better handling of exceptions that don’t cleanly convert to str().
- Added dependency library listings for XML output.
0.8(2008年12月6日)
- Added fairly basic pdbcapture system.
- Fixed errors in unicode handling and exception displaying.
- Updated JS to use jQuery where applicable. Updated jQuery lib and added jQuery hotkeys plugin.
- Refactored to a flatter layout.
0.8a(2008年2月27日)
- Fixed error in email due to restructuring of project.
- Added xml formattor output.
- Added try/except in case an objects repr throws an exception.