diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-14 14:29:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-14 14:56:07 +0100 |
commit | 1af0ccaac81e182c4ca520037dda362d180e5605 (patch) | |
tree | cee4ec60b108efa8166e36a2849b96581f317238 /lib/bb/ui | |
parent | 98a2c37e077b16e3bc8bb102bd18b293130d15a4 (diff) | |
download | bitbake-1af0ccaac81e182c4ca520037dda362d180e5605.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r-- | lib/bb/ui/knotty.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index dff92bce9..2fc20cfb5 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -371,7 +371,8 @@ def main(server, eventHandler, params, tf = TerminalFilter): if event.taskpid in helper.running_tasks: taskinfo = helper.running_tasks[event.taskpid] event.msg = taskinfo['title'] + ': ' + event.msg - + if hasattr(event, 'fn'): + event.msg = event.fn + ': ' + event.msg logger.handle(event) continue |