Bug 8099

Summary: Suggestion: prefix task log messages with recipe+task
Product: [Build System, Metadata & Runtime] BitBake Reporter: Christopher Larson <kergoth>
Component: bitbakeAssignee: Christopher Larson <kergoth>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Christopher Larson 2015-08-05 03:54:55 UTC
Quite often, classes end up adding information about the recipe/task the messages are associated with, and they do so quite often, and in inconsistent ways. I think there would be value in the bitbake UI associating all log messages generated by a task with that recipe+task, so the user always knows where they came from, and the code generating the messages can stop doing so themselves in inconsistent ways.

See https://gist.github.com/kergoth/50af1ca12692d39f0338 for one prototype for knotty, though it might be cleaner to do it in a subclass of the BBLogFormatter rather than modifying the message in the event loop.
Comment 1 Christopher Larson 2016-03-16 23:42:04 UTC
Implemented by bitbake rev 792b759e59e31d2e43d525a6e50d866b4f51f072 (poky rev a25858982ae313a13be95692496e4983c7bd4251).