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:42 -0800 |
commit | 545dd180cc27a69732f2332565038bd06d01c014 (patch) | |
tree | 2c7d8c98f2e888c3ed7585566f7e68a5832cf58f /meta/lib | |
parent | 8de0c5d3bd01919e2bf0394f9c485936d6098cec (diff) | |
download | openembedded-core-545dd180cc27a69732f2332565038bd06d01c014.tar.gz openembedded-core-545dd180cc27a69732f2332565038bd06d01c014.tar.bz2 openembedded-core-545dd180cc27a69732f2332565038bd06d01c014.zip |
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.
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): self.buffer = "" def write(self, msg): - if msg[-1] != '\n': + if len(msg) > 1 and msg[0] != '\n': self.buffer += msg else: self.logger.log(logging.INFO, self.buffer.rstrip("\n")) |