Commit 97336dde authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 9ecb4717
......@@ -13,7 +13,7 @@
##############################################################################
"""Start the server storage.
$Id: start.py,v 1.38 2002/08/01 18:50:28 jeremy Exp $
$Id: start.py,v 1.39 2002/08/05 21:39:02 jeremy Exp $
"""
from __future__ import nested_scopes
......@@ -296,11 +296,9 @@ def main(argv):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment