Commit b3d5cd66 authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 2edfdd0e
...@@ -286,9 +286,14 @@ def debug(msg): ...@@ -286,9 +286,14 @@ def debug(msg):
"""Log a debugging message.""" """Log a debugging message."""
_log(msg, zLOG.DEBUG) _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): def _log(msg, severity=zLOG.INFO, error=None):
"""Internal: generic logging function.""" """Internal: generic logging function."""
zLOG.LOG("RUNSVR", severity, msg, "", error) zLOG.LOG(_label, severity, msg, "", error)
# Main program # Main program
......
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