summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-14 14:29:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-15 06:59:44 +0100
commit8e7282c0320c95cacf14aee450c950f0a10b7999 (patch)
treece8abe566f03747418ee6b94be03a848e7e099e7 /bitbake/lib/bb/ui
parent1131303ec4997885418f502138b68fa89c2b9f78 (diff)
downloadpoky-8e7282c0320c95cacf14aee450c950f0a10b7999.tar.gz
bitbake: cooker/knotty: Prefix parse logs with filename being parsed
We now prefix log messages coming from worker task context with the PF and task info, however parsing messages all have to be manually prefixed which is ugly and error prone. This change modifies the log handler filter so this happens automatically, meaning we don't have to change every message to include that information. This makes error messages longer but more usable. (Bitbake rev: 1af0ccaac81e182c4ca520037dda362d180e5605) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/knotty.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index dff92bce91..2fc20cfb53 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -371,7 +371,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
371 if event.taskpid in helper.running_tasks: 371 if event.taskpid in helper.running_tasks:
372 taskinfo = helper.running_tasks[event.taskpid] 372 taskinfo = helper.running_tasks[event.taskpid]
373 event.msg = taskinfo['title'] + ': ' + event.msg 373 event.msg = taskinfo['title'] + ': ' + event.msg
374 374 if hasattr(event, 'fn'):
375 event.msg = event.fn + ': ' + event.msg
375 logger.handle(event) 376 logger.handle(event)
376 continue 377 continue
377 378