[Zodb-checkins] CVS: ZODB3/ZEO - runzeo.py:1.19

Jeremy Hylton jeremy at zope.com
Thu Oct 16 15:50:19 EDT 2003


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

Modified Files:
	runzeo.py 
Log Message:
Fix the log prefix for runzeo.py.

The file used to be called runsvr, but was changed.  Change the label
to RUNZEO to match the name of the file.

Add the process ID to distinguish different processes when tests are
running.


=== ZODB3/ZEO/runzeo.py 1.18 => 1.19 ===
--- ZODB3/ZEO/runzeo.py:1.18	Wed Oct 15 19:56:47 2003
+++ ZODB3/ZEO/runzeo.py	Thu Oct 16 15:50:18 2003
@@ -286,9 +286,14 @@
     """Log a debugging message."""
     _log(msg, zLOG.DEBUG)
 
+# XXX It would be nice if a program that extended this one (like
+# runzrs) could change the label.
+
+_label = "RUNZEO:%d" % os.getpid()
+
 def _log(msg, severity=zLOG.INFO, error=None):
     """Internal: generic logging function."""
-    zLOG.LOG("RUNSVR", severity, msg, "", error)
+    zLOG.LOG(_label, severity, msg, "", error)
 
 
 # Main program




More information about the Zodb-checkins mailing list