mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
8bedf46beb
commit
32562d7bec
1 file changed
+6
-1
@@ -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))
|
||||