summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-02-08 15:35:03 -0700
committerChris Larson <chris_larson@mentor.com>2011-02-08 15:35:04 -0700
commite4db09fd123100960f2e7c0a5a228d13010d11d8 (patch)
treebb940287fcb9855057a812fc857d7a738b059641 /lib
parentc0f3ff3eb5f5424f4f95133bec62bff49a8d087a (diff)
downloadbitbake-e4db09fd123100960f2e7c0a5a228d13010d11d8.tar.gz
event: fix exception format
Forgot to concatenate the lines returned by format_exception. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/event.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 28dac891d..5c0db1862 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -381,8 +381,8 @@ class LogHandler(logging.Handler):
def emit(self, record):
if record.exc_info:
- msg = traceback.format_exception(*record.exc_info, limit=5)
- record.msg += '\n%s' % msg
+ lines = traceback.format_exception(*record.exc_info, limit=5)
+ record.msg += '\n%s' % ''.join(lines)
record.exc_info = None
fire(record, None)