[Zope.Com Geeks] Re: [Zope-Coders] Re: [Zope.Com Geeks] Re: No
Zope tracebacks
Shane Hathaway
shane@zope.com
Mon, 20 May 2002 15:57:55 -0400
Chris McDonough wrote:
> If you create a "Site Error Log" object in your root folder through the
> ZMI, traceback info is sent to this thing and kept there. Shane wrote
> it because people complained about having tracebacks in HTML source.
> You can choose in the mgmt interface of the site error log to copy the
> traceback to the "STUPID_LOG_FILE" (which is controlled by an
> environment variable of the same name).
Right. The final step to perform in the "better tracebacks" project is
to make tracebacks appear by default again in the
standard_error_message. You can do it by adding a line to your
standard_error_message:
<dtml-var error_tb>
This hasn't been done yet because it turns out that several standard
Zope error messages output complete HTML blocks as the exception value.
I haven't decided whether to change the exceptions (which might break
existing Zope products) or make the error formatter aware of tags (which
is magical).
Shane