[Zodb-checkins] CVS: ZODB3/ZEO - start.py:1.45.6.3

Guido van Rossum guido@python.org
Fri, 20 Dec 2002 15:04:02 -0500


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv16060

Modified Files:
      Tag: ZODB3-3_1-branch
	start.py 
Log Message:
Log a message when rotating logs.


=== ZODB3/ZEO/start.py 1.45.6.2 => 1.45.6.3 ===
--- ZODB3/ZEO/start.py:1.45.6.2	Tue Nov 12 15:18:09 2002
+++ ZODB3/ZEO/start.py	Fri Dec 20 15:04:01 2002
@@ -319,11 +319,12 @@
     init = getattr(zLOG, 'initialize', None)
     if init is not None:
         init()
-        return
-    # This will work if the minimal logger is in use, but not if some
-    # other logger is active.
-    import zLOG.MinimalLogger
-    zLOG.MinimalLogger._log.initialize()
+    else:
+        # This will work if the minimal logger is in use, but not if some
+        # other logger is active.
+        import zLOG.MinimalLogger
+        zLOG.MinimalLogger._log.initialize()
+    zLOG.LOG("ZEO/start.py", zLOG.INFO, "Caught USR2, logs rotated")
 
 def rotate_logs_handler(signum, frame):
     rotate_logs()