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__.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index e1ddbd53ff..de8100c0cb 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -35,11 +35,6 @@ class NullHandler(logging.Handler):
35 def emit(self, record): 35 def emit(self, record):
36 pass 36 pass
37 37
38class BBLogRecord(logging.LogRecord):
39 def __init__(self, name, level, fn, lno, msg, args, exc_info, func, extra):
40 self.taskpid = bb.event.worker_pid
41 logging.LogRecord.__init__(self, name, level, fn, lno, msg, args, exc_info, func)
42
43Logger = logging.getLoggerClass() 38Logger = logging.getLoggerClass()
44class BBLogger(Logger): 39class BBLogger(Logger):
45 def __init__(self, name): 40 def __init__(self, name):
@@ -47,9 +42,6 @@ class BBLogger(Logger):
47 self.debug = self.bbdebug 42 self.debug = self.bbdebug
48 Logger.__init__(self, name) 43 Logger.__init__(self, name)
49 44
50 def makeRecord(self, name, lvl, fn, lno, msg, args, exc_info, func=None, extra=None):
51 return BBLogRecord(name, lvl, fn, lno, msg, args, exc_info, func, extra)
52
53 def bbdebug(self, level, msg, *args, **kwargs): 45 def bbdebug(self, level, msg, *args, **kwargs):
54 return self.log(logging.DEBUG - level - 1, msg, *args, **kwargs) 46 return self.log(logging.DEBUG - level - 1, msg, *args, **kwargs)
55 47