diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-08 13:51:46 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-08 13:51:48 -0700 |
commit | c0f3ff3eb5f5424f4f95133bec62bff49a8d087a (patch) | |
tree | e9c98056f3d1450662983f62d85b1ad0b8c59103 /lib/bb/event.py | |
parent | 7486b38603f2766adaf976a9f95e9276c83abe31 (diff) | |
download | bitbake-c0f3ff3eb5f5424f4f95133bec62bff49a8d087a.tar.gz |
event: limit the number of traceback entries to 5
This is slightly more sane.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r-- | lib/bb/event.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index e76a82a93..28dac891d 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -381,7 +381,8 @@ class LogHandler(logging.Handler): def emit(self, record): if record.exc_info: - record.msg += '\n%s' % traceback.format_exception(*record.exc_info) + msg = traceback.format_exception(*record.exc_info, limit=5) + record.msg += '\n%s' % msg record.exc_info = None fire(record, None) |