There is a somewhat trivial issue with XendCheckpoint.py right now in

that it logs everything written to stderr by xc_save and xc_restore as
errors whereas in fact the vast majority of this output is
information/debug (and all actual errors are marked by the string ERROR:
at the start of the message) -- this is confusing to folks looking at
the logs and makes automated log analysis tricky.

Fix is to scan for the ERROR: string and log anything without it using
log.info instead.

Signed-off by: Simon Graham <Simon.Graham@stratus.com>
This commit is contained in:
Ewan Mellor committed 2006-11-21 10:19:01 +00:00
1 parent 8bedf46beb
commit 32562d7bec
1 file changed
+6 -1
+6 -1
View File
@@ -234,4 +234,9 @@ def slurp(infile):
if line == "":
break
else:
log.error('%s', line.strip())
line = line.strip()
m = re.match(r"^ERROR: (.*)", line)
if m is None:
log.info('%s', line)
else:
log.error('%s', m.group(1))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.