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第三方库


热门话题
java Selenium Web驱动程序。负载策略不稳定   JAVAsql。SQLException:没有合适的驱动程序无法创建“oracle”类的JDBC驱动程序。jdbc。驾驶员用于连接URL的OracleDriver   java谷歌地图“优化路径点”如何解决旅行推销员的问题?   java这段代码可能会造成潜在的内存泄漏吗?   java更改JCombobox的高度   java如何清除jtable中的数据   JavaHadoop:错误安全性。UserGroupInformation:MapReduce程序中的PriviledgedActionException   java如何将sonarlint添加到gradle任务中?   性能为什么Java排序优于原语计数排序   java Spring属性PlaceHolderConfigure从数据库加载   java从泛型获取类不起作用   java Spring@Transactional传播属性   java试图拥有主菜单和子菜单类   XSL的java后处理步骤   java第一个字母和最后一个字母、第二个字母和倒数第二个字母之间的差值之和,依此类推,直到单词的中心   switch语句在Java中的下一个出发点   java 安卓如何在OnBackpress()时设置viewpager的特定项目位置?