Commit 9aad9bef authored by Guido van Rossum's avatar Guido van Rossum

I don't like subsystem or label names with spaces in them. Instead of

"ZEO Server", use "ZEO/start.py".  There was one (PANIC) log message
that used "z2"; changed that one to "ZEO/start.py" as well.
parent 267e1e5d
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Start the server storage. """Start the server storage.
$Id: start.py,v 1.43 2002/08/29 16:31:17 gvanrossum Exp $ $Id: start.py,v 1.44 2002/09/13 20:57:37 gvanrossum Exp $
""" """
from __future__ import nested_scopes from __future__ import nested_scopes
...@@ -52,8 +52,8 @@ def set_uid(arg): ...@@ -52,8 +52,8 @@ def set_uid(arg):
try: try:
import pwd import pwd
except ImportError: except ImportError:
LOG('ZEO Server', INFO, ("Can't set uid to %s." LOG('ZEO/start.py', INFO, ("Can't set uid to %s."
"pwd module is not available." % uid)) "pwd module is not available." % uid))
return return
try: try:
gid = None gid = None
...@@ -75,7 +75,7 @@ def set_uid(arg): ...@@ -75,7 +75,7 @@ def set_uid(arg):
except OSError: except OSError:
pass pass
except KeyError: except KeyError:
LOG('ZEO Server', ERROR, ("can't find uid %s" % arg)) LOG('ZEO/start.py', ERROR, ("can't find uid %s" % arg))
def setup_signals(storages): def setup_signals(storages):
try: try:
...@@ -253,7 +253,7 @@ def main(argv): ...@@ -253,7 +253,7 @@ def main(argv):
items = storages.items() items = storages.items()
items.sort() items.sort()
for kv in items: for kv in items:
LOG('ZEO Server', INFO, 'Serving %s:\t%s' % kv) LOG('ZEO/start.py', INFO, 'Serving %s:\t%s' % kv)
if not unix: if not unix:
unix = host, port unix = host, port
...@@ -271,7 +271,7 @@ def main(argv): ...@@ -271,7 +271,7 @@ def main(argv):
# Log startup exception and tell zdaemon not to restart us. # Log startup exception and tell zdaemon not to restart us.
info = sys.exc_info() info = sys.exc_info()
try: try:
LOG("z2", PANIC, "Startup exception", error=info) LOG("ZEO/start.py", PANIC, "Startup exception", error=info)
except: except:
pass pass
...@@ -287,7 +287,7 @@ def main(argv): ...@@ -287,7 +287,7 @@ def main(argv):
except: except:
info = sys.exc_info() info = sys.exc_info()
try: try:
LOG("ZEO Server", PANIC, "Unexpected error", error=info) LOG("ZEO/start.py", PANIC, "Unexpected error", error=info)
except: except:
pass pass
import traceback import traceback
...@@ -315,7 +315,7 @@ def rotate_logs_handler(signum, frame): ...@@ -315,7 +315,7 @@ def rotate_logs_handler(signum, frame):
signal.signal(signal.SIGHUP, rotate_logs_handler) signal.signal(signal.SIGHUP, rotate_logs_handler)
def shutdown(storages, die=1): def shutdown(storages, die=1):
LOG("ZEO Server", INFO, "Received signal") LOG("ZEO/start.py", INFO, "Received signal")
import asyncore import asyncore
# Do this twice, in case we got some more connections # Do this twice, in case we got some more connections
...@@ -336,7 +336,7 @@ def shutdown(storages, die=1): ...@@ -336,7 +336,7 @@ def shutdown(storages, die=1):
try: try:
s = die and "shutdown" or "restart" s = die and "shutdown" or "restart"
LOG('ZEO Server', INFO, "Shutting down (%s)" % s) LOG('ZEO/start.py', INFO, "Shutting down (%s)" % s)
except: except:
pass pass
......
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