disable_ecu: log retries as errors (#28223)

* log ecu disable retries as errors

* and here if it totally failsd
old-commit-hash: 041ab5bb7f
beeps
Shane Smiskol 2 years ago committed by GitHub
parent 3627c5c7f6
commit 08303958b7
  1. 4
      selfdrive/car/disable_ecu.py

@ -31,8 +31,8 @@ def disable_ecu(logcan, sendcan, bus=0, addr=0x7d0, com_cont_req=b'\x28\x83\x01'
except Exception: except Exception:
cloudlog.exception("ecu disable exception") cloudlog.exception("ecu disable exception")
print(f"ecu disable retry ({i+1}) ...") cloudlog.error(f"ecu disable retry ({i + 1}) ...")
cloudlog.warning("ecu disable failed") cloudlog.error("ecu disable failed")
return False return False

Loading…
Cancel
Save