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

Chris Withers chrisw@nipltd.com
Mon, 06 Jan 2003 17:50:59 +0000


Shane,

Guido van Rossum wrote:
> 
> Traditionally, the zLOG tracebacks have been formatted using the same
> zope-specific traceback formatting code that is used for the HTML
> tracebacks (but generating text format).  I found a problem with that,
> because there are conditions where the zope-specific traceback
> formatting code can invoke stuff left on the stack in magic variables
> that is poisoned.  So I changed it to use a plain traceback from the
> traceback module.  I think I only did this on thr trunk (i.e. Zope
> 2.7).  This isn't ideal either, because when it works, that magic
> stuff is useful.

What's you take on this?
What state are the Zope HEAD and 2.6 branch in with respect to each other?
I really want to fix this but I'm worried about making something bad happen for 
someone, somewhere that I don't know about.
All I want is for the tracebacks to be back.
Should I do that by:

1. Modifying MailingLogger to use another format_traceback

2. Copying the code from HEAD to Zope_2-6_branch for zLOG.format_exception

3. Something else ?

I'm also concerned 'cos I think I've seen complaints about the missing magic 
bits that Guido refers to.

Anyway, heylp! ;-)

cheers,

Chris