* [PATCH] oeqa/core/runner.py: OEStreamLogger fix logging
@ 2017-02-09 20:53 Aníbal Limón
0 siblings, 0 replies; only message in thread
From: Aníbal Limón @ 2017-02-09 20:53 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/lib/oeqa/core/runner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"))
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-09 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 20:53 [PATCH] oeqa/core/runner.py: OEStreamLogger fix logging Aníbal Limón
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox