summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r--bitbake/lib/bb/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 25cd24e223..67b1a8d14e 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -29,7 +29,7 @@ if sys.version_info < (2, 6, 0):
29 29
30import os 30import os
31import logging 31import logging
32import traceback 32
33 33
34class NullHandler(logging.Handler): 34class NullHandler(logging.Handler):
35 def emit(self, record): 35 def emit(self, record):
@@ -51,9 +51,6 @@ class BBLogger(Logger):
51 def verbose(self, msg, *args, **kwargs): 51 def verbose(self, msg, *args, **kwargs):
52 return self.log(logging.INFO - 1, msg, *args, **kwargs) 52 return self.log(logging.INFO - 1, msg, *args, **kwargs)
53 53
54 def exception(self, msg, *args, **kwargs):
55 return self.critical("%s\n%s" % (msg, traceback.format_exc()), *args, **kwargs)
56
57logging.raiseExceptions = False 54logging.raiseExceptions = False
58logging.setLoggerClass(BBLogger) 55logging.setLoggerClass(BBLogger)
59 56