[Zope-Coders] Creating a "default" error_log object

Casey Duncan casey@zope.com
Thu, 18 Jul 2002 09:23:00 -0400


On Wednesday 17 July 2002 08:18 pm, Chris McDonough wrote:
> While editing the Zope Book, it became apparent that the current state
> of affairs wrt error messages shown to a user in a browser are
> incorrect because the error message refers the user to the HTML source
> for a traceback.  In Zope 2.6+, there are no tracebacks in HTML
> source.
>=20
> The standard_error_message is easy enough to fix (and maybe it has
> been already and I'm using an old sandbox), but I'm wondering if we
> should create a default error_log object at startup, so at least the
> docs can point the user to a place where he can see the traceback
> without needing to explain that he needs to set up an error_log object
> himself.
>=20
> - C

I concur. One change that should be made to SimpleItem though is to not p=
ass a=20
value in error_log_url if the user does not have permission to view the l=
og=20
entry.

-Casey