[oe-commits] [bitbake] 02/03: main: Ensure log messages are printed when no UI starts
git at git.openembedded.org
git at git.openembedded.org
Tue Jul 2 11:23:15 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 4b9ab675cebb427ab8ad0c56c7b37eed50a2a39e
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Jul 2 11:28:32 2019 +0100
main: Ensure log messages are printed when no UI starts
If the UI hasn't started, no messages are printed to the console
until the server starts. This is confusing, particularly if the server
never starts. Flush the UI queue through the simply handler upon connection
retry so the user sees the messages they're supposed to be seeing.
Also point the user at the logfile for hints about why this may be.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/main.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bb/main.py b/lib/bb/main.py
index bd11619..a122688 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -468,7 +468,8 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
else:
logger.info("Retrying server connection (#%d)... (%s)" % (tryno, traceback.format_exc()))
if not retries:
- bb.fatal("Unable to connect to bitbake server, or start one")
+ bb.fatal("Unable to connect to bitbake server, or start one (server startup failures would be in bitbake-cookerdaemon.log).")
+ bb.event.print_ui_queue()
if retries < 5:
time.sleep(5)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list