Rawgpsd: retry even more on setup (#29045)

old-commit-hash: 9054590c95
This commit is contained in:
Harald Schäfer 2023-07-19 18:54:27 -07:00 committed by GitHub
parent f8c108e8e8
commit fccb8f0a6d
1 changed files with 2 additions and 1 deletions

View File

@ -88,12 +88,13 @@ measurementStatusGlonassFields = {
def try_setup_logs(diag, log_types):
for _ in range(3):
for _ in range(10):
try:
setup_logs(diag, log_types)
break
except Exception:
cloudlog.exception("setup logs failed, trying again")
time.sleep(1.0)
else:
raise Exception(f"setup logs failed, {log_types=}")