Commit 69fce97f authored by Guido van Rossum's avatar Guido van Rossum

Log messages when restarting logs.

(Recreating this diff after outdating the wrong revision.) :-(
parent 844c5ec3
......@@ -313,7 +313,7 @@ def rotate_logs():
init = getattr(zLOG, 'initialize', None)
if init is not None:
init()
return
else:
# This will work if the minimal logger is in use, but not if some
# other logger is active. MinimalLogger exists only in Zopes
# pre-2.7.
......@@ -321,7 +321,10 @@ def rotate_logs():
import zLOG.MinimalLogger
zLOG.MinimalLogger._log.initialize()
except ImportError:
pass
zLOG.LOG("ZEO/start.py", zLOG.WARNING,
"Caught USR2, could not rotate logs")
return
zLOG.LOG("ZEO/start.py", zLOG.INFO, "Caught USR2, logs rotated")
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