hi, i´m trying to suppress tracebacks in error messages in zope 2.5.1; fussing around with BOBO_DEBUG_MODE=0 and HTTP_TRACEBACK_STYLE=none didn´t do anything; seems like zope defaults to debug mode (setting -D 0 didn´t work either), which it shouldn´t do... any suggestions? thank you!
This whole area is much improved on the Zope trunk (aka Zope 2.6). I'd suggest checking it out when you get a chance. Instead of putting tracebacks in HTML responses by default, it consolidates logging into an "error log" object. You can optionally tell the error log object to write errors to the event log (stupid log) as well. As far as Zope 2.5.1 goes... I'm honestly not sure how it's supposed to work. If there was ever a clear and forthright description of the intent of BOBO_DEBUG_MODE and HTTP_TRACEBACK_STYLE, it was lost long ago. ;-) - C On Mon, 2002-09-02 at 17:43, Oliver Skiebe wrote:
hi,
i´m trying to suppress tracebacks in error messages in zope 2.5.1; fussing around with BOBO_DEBUG_MODE=0 and HTTP_TRACEBACK_STYLE=none didn´t do anything; seems like zope defaults to debug mode (setting -D 0 didn´t work either), which it shouldn´t do...
any suggestions? thank you!
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
According to Zopezen there's an article at Developer Shed, thought it's focused on DTML: http://www.devshed.com/Server_Side/Zope/DTMLExceptions/page1.html Ausum ----- Original Message ----- From: "Oliver Skiebe" <oliver.skiebe@alliednetworks.de> To: <zope@zope.org> Sent: Monday, September 02, 2002 4:43 PM Subject: [Zope] suppressing tracebacks hi, i´m trying to suppress tracebacks in error messages in zope 2.5.1; fussing around with BOBO_DEBUG_MODE=0 and HTTP_TRACEBACK_STYLE=none didn´t do anything; seems like zope defaults to debug mode (setting -D 0 didn´t work either), which it shouldn´t do... any suggestions? thank you! _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 23:43 +0200 2002-09-02, Oliver Skiebe wrote:
i´m trying to suppress tracebacks in error messages in zope 2.5.1; fussing around with BOBO_DEBUG_MODE=0 and HTTP_TRACEBACK_STYLE=none didn´t do anything; seems like zope defaults to debug mode (setting -D 0 didn´t work either), which it shouldn´t do...
We solved this one just a couple of days ago. Guess what? BOBO_DEBUG_MODE=0 means turn on debugging. Yep, and so does BOBO_DEBUG_MODE=1. In fact, any digit or the string 'yes' or 'y' will have the same effect. Try: BOBO_DEBUG_MODE=no Works for us. Steve
ehhhm - sorry for this one, but it doesn´t seem to work out - so i´m setting an environment variable, f.i. in /etc/profile (starting zope as root, i.e. nobody)... like BOBO_DEBUG_MODE=no correct this far? ps -ef gives me a /.../z2.py -D -X -w <portnum> manually specifying -D at start time ends up saying /.../z2.py -D -X -w <portnum> -D editing ./start so that zope is started like /.../z2.py -X -w <portnum> still gives me those darn tracebacks - sorry again, no clue ... thank you eternally for a hint, oliver
At 23:43 +0200 2002-09-02, Oliver Skiebe wrote:
i´m trying to suppress tracebacks in error messages in zope 2.5.1; fussing around with BOBO_DEBUG_MODE=0 and HTTP_TRACEBACK_STYLE=none didn´t do anything; seems like zope defaults to debug mode (setting -D 0 didn´t work either), which it shouldn´t do...
We solved this one just a couple of days ago. Guess what? BOBO_DEBUG_MODE=0 means turn on debugging. Yep, and so does BOBO_DEBUG_MODE=1.
In fact, any digit or the string 'yes' or 'y' will have the same effect.
Try:
BOBO_DEBUG_MODE=no
Works for us.
Steve
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_____ To understand recursion, we first have to understand recursion.
participants (5)
-
Ausum Studio -
Chris McDonough -
Oliver Skiebe -
Oliver Skiebe -
Steve Lay