Bug 8099 - Suggestion: prefix task log messages with recipe+task
Summary: Suggestion: prefix task log messages with recipe+task
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.1
Assignee: Christopher Larson
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-08-05 03:54 UTC by Christopher Larson
Modified: 2016-03-16 23:42 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).