[Zope-dev] zLog and stderr

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 26 Sep 2001 10:12:49 +0100


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?


Toby Dickenson
tdickenson@geminidataloggers.com