disable_ecu: log retries as errors (#28223)

* log ecu disable retries as errors

* and here if it totally failsd
pull/28225/head
Shane Smiskol 2 years ago committed by GitHub
parent c722120a88
commit 041ab5bb7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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:
cloudlog.exception("ecu disable exception")
print(f"ecu disable retry ({i+1}) ...")
cloudlog.warning("ecu disable failed")
cloudlog.error(f"ecu disable retry ({i + 1}) ...")
cloudlog.error("ecu disable failed")
return False

Loading…
Cancel
Save