summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-09-09 17:57:33 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:34 +0000
commit39d61dc49813a4df97959b392f00f456265363d7 (patch)
treeebc0771af416d62d65372497459664f084893fa4 /bitbake
parent0533a8465b4392c44f86a1b38f348a015f7f5c4c (diff)
downloadpoky-39d61dc49813a4df97959b392f00f456265363d7.tar.gz
Work around issue with pickling of traceback objects
(Bitbake rev: 82928613256bad92fde9f4071244a53e20fc89ee) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 3f00a8ee59..f8577c6794 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -29,6 +29,7 @@ if sys.version_info < (2, 6, 0):
29 29
30import os 30import os
31import logging 31import logging
32import traceback
32 33
33class NullHandler(logging.Handler): 34class NullHandler(logging.Handler):
34 def emit(self, record): 35 def emit(self, record):
@@ -50,6 +51,9 @@ class BBLogger(Logger):
50 def verbose(self, msg, *args, **kwargs): 51 def verbose(self, msg, *args, **kwargs):
51 return self.log(logging.INFO - 1, msg, *args, **kwargs) 52 return self.log(logging.INFO - 1, msg, *args, **kwargs)
52 53
54 def exception(self, msg, *args, **kwargs):
55 return self.critical("%s\n%s" % (msg, traceback.format_exc()), *args, **kwargs)
56
53logging.raiseExceptions = False 57logging.raiseExceptions = False
54logging.setLoggerClass(BBLogger) 58logging.setLoggerClass(BBLogger)
55 59