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

Guido van Rossum guido@python.org
Fri, 13 Sep 2002 16:57:38 -0400


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

Modified Files:
	start.py 
Log Message:
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.


=== ZODB3/ZEO/start.py 1.43 => 1.44 ===
--- ZODB3/ZEO/start.py:1.43	Thu Aug 29 12:31:17 2002
+++ ZODB3/ZEO/start.py	Fri Sep 13 16:57:37 2002
@@ -52,8 +52,8 @@
     try:
         import pwd
     except ImportError:
-        LOG('ZEO Server', INFO, ("Can't set uid to %s."
-                                 "pwd module is not available." % uid))
+        LOG('ZEO/start.py', INFO, ("Can't set uid to %s."
+                                "pwd module is not available." % uid))
         return
     try:
         gid = None
@@ -75,7 +75,7 @@
         except OSError:
             pass
     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):
     try:
@@ -253,7 +253,7 @@
         items = storages.items()
         items.sort()
         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:
             unix = host, port
@@ -271,7 +271,7 @@
         # Log startup exception and tell zdaemon not to restart us.
         info = sys.exc_info()
         try:
-            LOG("z2", PANIC, "Startup exception", error=info)
+            LOG("ZEO/start.py", PANIC, "Startup exception", error=info)
         except:
             pass
 
@@ -287,7 +287,7 @@
     except:
         info = sys.exc_info()
         try:
-            LOG("ZEO Server", PANIC, "Unexpected error", error=info)
+            LOG("ZEO/start.py", PANIC, "Unexpected error", error=info)
         except:
             pass
         import traceback
@@ -315,7 +315,7 @@
     signal.signal(signal.SIGHUP, rotate_logs_handler)
 
 def shutdown(storages, die=1):
-    LOG("ZEO Server", INFO, "Received signal")
+    LOG("ZEO/start.py", INFO, "Received signal")
     import asyncore
 
     # Do this twice, in case we got some more connections
@@ -336,7 +336,7 @@
 
     try:
         s = die and "shutdown" or "restart"
-        LOG('ZEO Server', INFO, "Shutting down (%s)" % s)
+        LOG('ZEO/start.py', INFO, "Shutting down (%s)" % s)
     except:
         pass