Commit b34ad91f authored by Guido van Rossum's avatar Guido van Rossum

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().
parent 701cc0a1
...@@ -95,7 +95,6 @@ def setup_signals(storages): ...@@ -95,7 +95,6 @@ def setup_signals(storages):
def main(argv): def main(argv):
me = argv[0] me = argv[0]
sys.path.insert(0, directory(me, 2)) sys.path.insert(0, directory(me, 2))
import zLOG
global LOG, INFO, ERROR global LOG, INFO, ERROR
from zLOG import LOG, INFO, WARNING, ERROR, PANIC from zLOG import LOG, INFO, WARNING, ERROR, PANIC
...@@ -212,7 +211,7 @@ def main(argv): ...@@ -212,7 +211,7 @@ def main(argv):
os.environ['Z_DEBUG_MODE'] = '1' os.environ['Z_DEBUG_MODE'] = '1'
if detailed: if detailed:
os.environ['STUPID_LOG_SEVERITY'] = '-300' os.environ['STUPID_LOG_SEVERITY'] = '-300'
zLOG.initialize() rotate_logs() # reinitialize zLOG
set_uid(UID) set_uid(UID)
......
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