[Zope-Coders] Re: [Zope] Reclaim the Stupid Logfile Traceback Format!

Chris Withers chrisw@nipltd.com
Mon, 06 Jan 2003 18:29:30 +0000


Shane Hathaway wrote:
> Chris Withers wrote:
> 
>> All I want is for the tracebacks to be back.
>> Should I do that by:
>>
>> 2. Copying the code from HEAD to Zope_2-6_branch for 
>> zLOG.format_exception
> 
> Yes.
> 
> Be conservative, though. :-)

Waagh, no dice :-(

Chris M's big logging changes have already been merged to the HEAD.

Also, the MailingLogger code uses format_exception like:

             body = body + format_exception(
                 error[0], error[1], error[2],
                 trailer='\n', limit=100)

...which barfs in the following way if you use the traceback module's 
format_exception:

  Error Type: TypeError
Error Value: format_exception() got an unexpected keyword argument 'trailer'

I would just revert to FormatException version 1.5, but surely that's gonna hurt 
the stuff in http://dev.zope.org/Wikis/DevSite/Proposals/BetterTracebacks?

Heylp! still needed :-S

cheers,

Chris


> 
> Shane
> 
>