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