Bug 11903 - Server log needs separation between instances
Summary: Server log needs separation between instances
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: High normal
Target Milestone: 2.4 M4
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-07 09:31 UTC by Paul Eggleton
Modified: 2017-09-14 23:45 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2017-08-07 09:31:07 UTC
At the moment the server log (bitbake-cookerdaemon.log in the build directory) is just a stream of messages and there's no separation between different instances over time. This makes it hard to see which messages are associated with the latest instance, particularly if you're trying to diagnose a startup failure - worse still if the client prints the last 10 lines and some of those lines are unrelated.

We should write a separator when the server starts logging to the file, and also log the date and time as the first entry (probably within the existing "starting bitbake server pid ..." line). The separator should be programmatically identifiable in such a way that it is very unlikely that a normal error message could be mistaken for the separator, and we should then change the code that prints the last 10 (or however many) lines of the log to find the last separator reliably and only print back to that point.
Comment 1 Paul Eggleton 2017-08-07 09:33:41 UTC
I should add, the "starting bitbake server pid ..." that we have currently is a kind of separation, it's just not as easily visible/parsable as something like "----#### bitbake server startup ####----" (or something more appropriate).