summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/__init__.py8
-rw-r--r--bitbake/lib/bb/event.py4
2 files changed, 4 insertions, 8 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index e1ddbd53f..de8100c0c 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -35,11 +35,6 @@ class NullHandler(logging.Handler):
def emit(self, record):
pass
-class BBLogRecord(logging.LogRecord):
- def __init__(self, name, level, fn, lno, msg, args, exc_info, func, extra):
- self.taskpid = bb.event.worker_pid
- logging.LogRecord.__init__(self, name, level, fn, lno, msg, args, exc_info, func)
-
Logger = logging.getLoggerClass()
class BBLogger(Logger):
def __init__(self, name):
@@ -47,9 +42,6 @@ class BBLogger(Logger):
self.debug = self.bbdebug
Logger.__init__(self, name)
- def makeRecord(self, name, lvl, fn, lno, msg, args, exc_info, func=None, extra=None):
- return BBLogRecord(name, lvl, fn, lno, msg, args, exc_info, func, extra)
-
def bbdebug(self, level, msg, *args, **kwargs):
return self.log(logging.DEBUG - level - 1, msg, *args, **kwargs)
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 450d91363..bd2042a99 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -384,3 +384,7 @@ class LogHandler(logging.Handler):
fire(record, None)
if bb.event.useStdout:
print(self.format(record))
+
+ def filter(self, record):
+ record.taskpid = worker_pid
+ return True