[ZCM] [ZC] 1234/ 2 Resolve "fix zLOG.LOG() exception argument"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Aug 2 07:57:53 EDT 2004


Issue #1234 Update (Resolve) "fix zLOG.LOG() exception argument"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1234

==============================================================
= Resolve - Entry #2 by ajung on Aug 2, 2004 7:57 am

 Status: Accepted => Resolved

Fixed on the 2.7 branch and SVN trunk.
________________________________________
= Request - Entry #1 by jeremy on Feb 18, 2004 2:43 pm

 Status: Pending => Accepted

 Supporters added: jeremy

In Zope 2.7 and the Zope head, the zLOG package is a wrapper around the logging package.  It doesn't handle tracebacks passed to LOG() correctly.  The logging package doesn't have a mechanism to pass a traceback, only to say whether the current traceback should be logged.

Jim came up with a good solution.  This little bit of Python code can reset the current exception:
try:
    raise exc_info[0], exc_info[1], exc_info[2]
except:
    pass

==============================================================



More information about the Zope-Collector-Monitor mailing list