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日)

0.13(2016年3月15日)

0.12(2016年2月8日)

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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
amazon web services Java AWS s3:如何使用Md5预签名url设置和上载内容   twitter使用java从推文中排除一些单词   如何在GUI java中添加延迟时间   java程序,如何使用Outputstream发送两次消息   java为什么是javax。在将Yasson与JSONB一起使用时,Glassfish中的json需要作为依赖项吗?   如何从dist文件夹中读取文件   java如何获取与模式匹配的文件列表   java如何使用Intent从Android应用程序发送彩信?   java限制对Spring的依赖,同时又不丧失框架的功能   java是否将捕获异常报告给Firebase/Fabric等?   用jdbcjava实现mysql分页   给定URI的java注释检索   java是序列化/反序列化公共枚举的简单方法?   java如何使用jMockit模拟本机方法