diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-24 16:30:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-26 11:10:26 +0000 |
commit | 0774e6e03d27adb7aca6fa9c47ab6ad426c937de (patch) | |
tree | cdc7ca5a751ebdd4e3846131872a77227107f57d | |
parent | 8a1f2fcf35d61d83bbafa8fa3ae215fd5f51728b (diff) | |
download | bitbake-0774e6e03d27adb7aca6fa9c47ab6ad426c937de.tar.gz |
main: When retrying the connection, show the attempt number
The current bitbake output makes it hard to know which retry is being
attempted. Add this information to the output to make it clearer.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | lib/bb/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py index 7dc953da6..41dd3b9e0 100755 --- a/lib/bb/main.py +++ b/lib/bb/main.py @@ -475,10 +475,11 @@ def setup_bitbake(configParams, configuration, extrafeatures=None): if not retries: raise retries -= 1 + tryno = 8 - retries if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)): - logger.info("Retrying server connection...") + logger.info("Retrying server connection (#%d)..." % tryno) else: - logger.info("Retrying server connection... (%s)" % traceback.format_exc()) + 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") if retries < 5: |