From: Richard Purdie Date: Mon, 24 Dec 2018 16:30:01 +0000 (+0000) Subject: bitbake: main: When retrying the connection, show the attempt number X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c263f31e39f0fd8a7bc411d142937fc533d9dc97;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: 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. (Bitbake rev: 0774e6e03d27adb7aca6fa9c47ab6ad426c937de) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 7dc953da665..41dd3b9e03a 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/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: