diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-02-09 14:53:17 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-15 09:29:55 -0800 |
commit | 430eb6fec3cea2fdf0f70f2f0f8a5441093902d1 (patch) | |
tree | 0452de5c5b9bf3073c37326f96140596ef16471a /meta/lib | |
parent | bfd0a39bdf13f6953810bf868022a871d2a20b6d (diff) | |
download | poky-430eb6fec3cea2fdf0f70f2f0f8a5441093902d1.tar.gz |
oeqa/core/runner.py: OEStreamLogger fix logging
Change conditional to avoid losing stack traces when log
into the logger. The logic only needs to don't log empty lines.
(From OE-Core rev: 545dd180cc27a69732f2332565038bd06d01c014)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 8f5af579f3..0f158c39f1 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py | |||
@@ -23,7 +23,7 @@ class OEStreamLogger(object): | |||
23 | self.buffer = "" | 23 | self.buffer = "" |
24 | 24 | ||
25 | def write(self, msg): | 25 | def write(self, msg): |
26 | if msg[-1] != '\n': | 26 | if len(msg) > 1 and msg[0] != '\n': |
27 | self.buffer += msg | 27 | self.buffer += msg |
28 | else: | 28 | else: |
29 | self.logger.log(logging.INFO, self.buffer.rstrip("\n")) | 29 | self.logger.log(logging.INFO, self.buffer.rstrip("\n")) |