diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-07 16:00:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-08 13:29:54 +0100 |
commit | f88652d2843612b9844d61a595dd3f829452673e (patch) | |
tree | ec57d4aa1bc565e61d792ac5386975569ab9b650 /bitbake | |
parent | a9d02d0ee23dbd212f3d0cb9c7a5624a9c574acc (diff) | |
download | poky-f88652d2843612b9844d61a595dd3f829452673e.tar.gz |
bitbake: knotty: Drop task prefix of PLAIN log messages
To quote Paul:
Not that long ago we added a prefix to logged messages to allow us to see
where the message has been generated (recipe / task). This is undoubtedly
useful for errors and warnings, however, I'm not sure it's really appropriate
for bb.plain(). As an example, see the output for -c listtasks now:
...
NOTE: Executing RunQueue Tasks
nodejs-native-4.5.0-r0 do_listtasks: do_addto_recipe_sysroot
nodejs-native-4.5.0-r0 do_listtasks: do_build Default task for a recipe - depends on all other normal tasks required to 'build' a recipe
nodejs-native-4.5.0-r0 do_listtasks: do_checklicense
nodejs-native-4.5.0-r0 do_listtasks: do_checklicenseall
nodejs-native-4.5.0-r0 do_listtasks: do_checkpkg
...
This patch excludes PLAIN messages from this prefixing making the log output
neater.
[YOCTO #11457]
(Bitbake rev: 4a14b44b3e4fad3a3e5e53461aa8ba9929a515b8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 936d5a4fb1..11afb3e744 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -472,7 +472,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
472 | continue | 472 | continue |
473 | 473 | ||
474 | # Prefix task messages with recipe/task | 474 | # Prefix task messages with recipe/task |
475 | if event.taskpid in helper.running_tasks: | 475 | if event.taskpid in helper.running_tasks and event.levelno != format.PLAIN: |
476 | taskinfo = helper.running_tasks[event.taskpid] | 476 | taskinfo = helper.running_tasks[event.taskpid] |
477 | event.msg = taskinfo['title'] + ': ' + event.msg | 477 | event.msg = taskinfo['title'] + ': ' + event.msg |
478 | if hasattr(event, 'fn'): | 478 | if hasattr(event, 'fn'): |