[Zope-dev] zLog and stderr
Stefan H. Holek
stefan@epy.co.at
Wed, 26 Sep 2001 13:09:44 +0200 (CEST)
On Wed, 26 Sep 2001, Toby Dickenson wrote:
> I have some old python modules which are generating messages from the
> new python 2.1 warning framework. I can easily fix these modules,
> however it has exposed a problem in Zope......
>
> The warning framework tries to write to sys.stderr, and my Zope is
> dying from an exception because stderr has been closed.
>
> I think it makes sense that Zope should replace sys.stderr with an
> object that sends messages to zLog, however zLog itself sometimes
> wites to sys.stderr.
>
> Any thoughts on the right way to fix this?
AFAIK, setting the STUPID_LOG_FILE envar in the start script will provide
stdout/stderr to Zope.
Stefan