diff options
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r-- | bitbake/lib/bb/msg.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 786b5aef40..6fdd1f52a0 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -90,8 +90,9 @@ class BBLogFormatter(logging.Formatter): | |||
90 | if self.color_enabled: | 90 | if self.color_enabled: |
91 | record = self.colorize(record) | 91 | record = self.colorize(record) |
92 | msg = logging.Formatter.format(self, record) | 92 | msg = logging.Formatter.format(self, record) |
93 | 93 | if hasattr(record, 'bb_exc_formatted'): | |
94 | if hasattr(record, 'bb_exc_info'): | 94 | msg += '\n' + ''.join(record.bb_exc_formatted) |
95 | elif hasattr(record, 'bb_exc_info'): | ||
95 | etype, value, tb = record.bb_exc_info | 96 | etype, value, tb = record.bb_exc_info |
96 | formatted = bb.exceptions.format_exception(etype, value, tb, limit=5) | 97 | formatted = bb.exceptions.format_exception(etype, value, tb, limit=5) |
97 | msg += '\n' + ''.join(formatted) | 98 | msg += '\n' + ''.join(formatted) |