ia64/xen-unstable

changeset 12528:bc14f1e1961a

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>
author Ewan Mellor <ewan@xensource.com>
date Tue Nov 21 10:19:01 2006 +0000 (2006-11-21)
parents 0c0ef61de06b
children e2d593dd1689
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Tue Nov 21 10:16:58 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Tue Nov 21 10:19:01 2006 +0000
     1.3 @@ -234,4 +234,9 @@ def slurp(infile):
     1.4          if line == "":
     1.5              break
     1.6          else:
     1.7 -            log.error('%s', line.strip())
     1.8 +            line = line.strip()
     1.9 +            m = re.match(r"^ERROR: (.*)", line)
    1.10 +            if m is None:
    1.11 +                log.info('%s', line)
    1.12 +            else:
    1.13 +                log.error('%s', m.group(1))