[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4560/8267] oeqa/core/runner.py: OEStreamLogger fix logging
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4560/8267] oeqa/core/runner.py: OEStreamLogger fix logging
- Date: Sun, 17 Dec 2017 02:12:29 +0000 (UTC)
commit 430eb6fec3cea2fdf0f70f2f0f8a5441093902d1
Author: Aníbal Limón <anibal limon linux intel com>
Date: Thu Feb 9 14:53:17 2017 -0600
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>
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 8f5af57..0f158c3 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"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]