mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
Rawgpsd: retry even more on setup (#29045)
This commit is contained in:
@@ -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=}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user