[Zodb-checkins] CVS: ZODB3/ZEO - start.py:1.55
Guido van Rossum
guido@python.org
Wed, 27 Nov 2002 23:29:58 -0500
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv30977
Modified Files:
start.py
Log Message:
Replace the last direct call to zLOG.initialize() with a call to
rotate_logs(), which has the same effect but is more Zope 2.5
friendly.
Remove now redundant zLOG import from main().
=== ZODB3/ZEO/start.py 1.54 => 1.55 ===
--- ZODB3/ZEO/start.py:1.54 Wed Nov 27 23:18:23 2002
+++ ZODB3/ZEO/start.py Wed Nov 27 23:29:57 2002
@@ -95,7 +95,6 @@
def main(argv):
me = argv[0]
sys.path.insert(0, directory(me, 2))
- import zLOG
global LOG, INFO, ERROR
from zLOG import LOG, INFO, WARNING, ERROR, PANIC
@@ -212,7 +211,7 @@
os.environ['Z_DEBUG_MODE'] = '1'
if detailed:
os.environ['STUPID_LOG_SEVERITY'] = '-300'
- zLOG.initialize()
+ rotate_logs() # reinitialize zLOG
set_uid(UID)