diff options
| author | Christopher Larson <chris_larson@mentor.com> | 2016-02-11 17:13:36 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-16 09:04:23 +0000 |
| commit | a25858982ae313a13be95692496e4983c7bd4251 (patch) | |
| tree | db0ea49774f3fad0f5dda10b2a92e40fd3a4d2d7 | |
| parent | 4bf8b21ab838143c6e875e600da276c77bc5ea67 (diff) | |
| download | poky-a25858982ae313a13be95692496e4983c7bd4251.tar.gz | |
bitbake: bb.ui.knotty: prefix task messages with recipe/task
An example prefix: `perl-5.22.1-r0 do_compile:`
(Bitbake rev: 792b759e59e31d2e43d525a6e50d866b4f51f072)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index a7521ee827..dff92bce91 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
| @@ -359,11 +359,19 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
| 359 | return_value = 1 | 359 | return_value = 1 |
| 360 | elif event.levelno == format.WARNING: | 360 | elif event.levelno == format.WARNING: |
| 361 | warnings = warnings + 1 | 361 | warnings = warnings + 1 |
| 362 | # For "normal" logging conditions, don't show note logs from tasks | 362 | |
| 363 | # but do show them if the user has changed the default log level to | 363 | if event.taskpid != 0: |
| 364 | # include verbose/debug messages | 364 | # For "normal" logging conditions, don't show note logs from tasks |
| 365 | if event.taskpid != 0 and event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)): | 365 | # but do show them if the user has changed the default log level to |
| 366 | continue | 366 | # include verbose/debug messages |
| 367 | if event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)): | ||
| 368 | continue | ||
| 369 | |||
| 370 | # Prefix task messages with recipe/task | ||
| 371 | if event.taskpid in helper.running_tasks: | ||
| 372 | taskinfo = helper.running_tasks[event.taskpid] | ||
| 373 | event.msg = taskinfo['title'] + ': ' + event.msg | ||
| 374 | |||
| 367 | logger.handle(event) | 375 | logger.handle(event) |
| 368 | continue | 376 | continue |
| 369 | 377 | ||
