[Zodb-checkins] CVS: StandaloneZODB/ZEO - start.py:1.39
Jeremy Hylton
jeremy@zope.com
Mon, 5 Aug 2002 17:39:03 -0400
Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv20432/ZEO
Modified Files:
start.py
Log Message:
Attempt to fix log file rotation.
No log writer that I know of has a reinitialize() function.
zLOG has an initialize() function, but it isn't easy to get at yet.
=== StandaloneZODB/ZEO/start.py 1.38 => 1.39 ===
def rotate_logs():
import zLOG
- if hasattr(zLOG.log_write, 'reinitialize'):
- zLOG.log_write.reinitialize()
- else:
- # Hm, lets at least try to take care of the stupid logger:
- zLOG._stupid_dest=None
+ init = getattr(zLOG, 'initialize', None)
+ if init is not None:
+ init()
def rotate_logs_handler(signum, frame):
rotate_logs()