bb.ui.knotty: prefix task messages with recipe/task
A message that is not in the archive (sent off-list or not yet received): [email protected]
RFC PATCH 1/1 bb.ui.knotty: prefix task messages with recipe/task
From: Christopher Larson <[email protected]>
An example prefix: perl-5.22.1-r0 do_compile:
--- lib/bb/ui/knotty.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-)
lib/bb/ui/knotty.py +13 -5
@@ -359,11 +359,19 @@ def main(server, eventHandler, params, tf = TerminalFilter): return_value = 1 elif event.levelno == format.WARNING: warnings = warnings + 1 - # For "normal" logging conditions, don't show note logs from tasks - # but do show them if the user has changed the default log level to - # include verbose/debug messages - if event.taskpid != 0 and event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)): - continue + + if event.taskpid != 0: + # For "normal" logging conditions, don't show note logs from tasks + # but do show them if the user has changed the default log level to + # include verbose/debug messages + if event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)): + continue + + # Prefix task messages with recipe/task + if event.taskpid in helper.running_tasks: + taskinfo = helper.running_tasks[event.taskpid] + event.msg = taskinfo['title'] + ': ' + event.msg + logger.handle(event) continue
Signature · 1 line
2.2.1
Quoted 6 lines · Christopher Larson
From: Christopher Larson <[email protected]>
An example prefix:
perl-5.22.1-r0 do_compile:Signed-off-by Christopher Larson <[email protected]>
I realize this may well be something to do for 2.2 rather than 2.1, but I wanted to throw it out and get thoughts on it, as I'm sick of manually prefixing our log messages in tasks :)
Quoted 10 lines · Christopher Larson
On Thu, Feb 11, 2016 at 5:13 PM Christopher Larson <[email protected]
Quoted 6 lines
wrote:
From: Christopher Larson <[email protected]>An example prefix:
perl-5.22.1-r0 do_compile:Signed-off-by Christopher Larson <[email protected]>I realize this may well be something to do for 2.2 rather than 2.1, but I wanted to throw it out and get thoughts on it, as I'm sick of manually prefixing our log messages in tasks :)
I like the idea and actually wondered why this was an RFC, shouldn't we just do it?
Having watched oe-selftest having a problems with this, I can see why we may need to be more cautious :/.
Still trying to assess how bad the issues there are.
Cheers,
Richard
Quoted 13 lines · Richard Purdie
Quoted 11 lines · Christopher Larson
On Thu, Feb 11, 2016 at 5:13 PM Christopher Larson < [email protected]
Quoted 6 lines
wrote:
From: Christopher Larson <[email protected]>An example prefix:
perl-5.22.1-r0 do_compile:Signed-off-by Christopher Larson <[email protected]>I realize this may well be something to do for 2.2 rather than 2.1, but I wanted to throw it out and get thoughts on it, as I'm sick of manually prefixing our log messages in tasks :)
Quoted 8 lines
I like the idea and actually wondered why this was an RFC, shouldn't we
just do it?Having watched oe-selftest having a problems with this, I can see why we may need to be more cautious :/.
Still trying to assess how bad the issues there are.
Fixed the issues in selftest so decided to merge this as it is an issue we've needed to address for a while.
Thanks!
Richard
Quoted 21 lines · Richard Purdie
Quoted 20 lines · Richard Purdie
Quoted 11 lines · Christopher Larson
On Thu, Feb 11, 2016 at 5:13 PM Christopher Larson < [email protected]
Quoted 6 lines
wrote:
From: Christopher Larson <[email protected]>An example prefix:
perl-5.22.1-r0 do_compile:Signed-off-by Christopher Larson <[email protected]>I realize this may well be something to do for 2.2 rather than 2.1, but I wanted to throw it out and get thoughts on it, as I'm sick of manually prefixing our log messages in tasks :)
I like the idea and actually wondered why this was an RFC, shouldn't we
just do it?Having watched oe-selftest having a problems with this, I can see why we may need to be more cautious :/.
Quoted 7 lines
Quoted 1 line
Still trying to assess how bad the issues there are.
Fixed the issues in selftest so decided to merge this as it is an issue we've needed to address for a while.
Thanks!
NP, Thanks for taking the time to look into and test this.