add more log

pull/26850/head
Kurt Nistelberger 3 years ago
parent cf2767f3a2
commit 60dc8bd2f2
  1. 6
      selfdrive/locationd/laikad.py

@ -416,6 +416,8 @@ def main(sm=None, pm=None, qc=None):
use_internet = "LAIKAD_NO_INTERNET" not in os.environ
laikad = Laikad(save_ephemeris=not replay, auto_fetch_orbits=use_internet, use_qcom=use_qcom)
log_done = False
while True:
sm.update()
@ -434,6 +436,10 @@ def main(sm=None, pm=None, qc=None):
if laikad.auto_fetch_orbits:
laikad.fetch_orbits(t, block=replay)
if log_done:
debug_log_cache()
log_done = True
if __name__ == "__main__":
main()

Loading…
Cancel
Save