summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-03-09 11:33:40 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-12 23:01:42 +0000
commit9624d42133e024fd044d0d089c7017ed53eed874 (patch)
tree0d66a30b540b51232e56fc907a8e6c52ced981da
parentf32a8bc7ff7a0b0750b6934a96f5d48391b1383a (diff)
downloadbitbake-9624d42133e024fd044d0d089c7017ed53eed874.tar.gz
knotty: Handle logging messages with specific logger
Handles the log messages from the bitbake server with the specific logger that the event originated from. This allows hierarchical logging configurations to work as expected. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/knotty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index cbb289b05..a6a92b920 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -522,7 +522,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
event.msg = taskinfo['title'] + ': ' + event.msg
if hasattr(event, 'fn'):
event.msg = event.fn + ': ' + event.msg
- logger.handle(event)
+ logging.getLogger(event.name).handle(event)
continue
if isinstance(event, bb.build.TaskFailedSilent):