mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 18:22:07 +08:00
IsoTpParallelQuery: log errors in qlogs (#26609)
log these in qlogs
old-commit-hash: 08b49e5671
This commit is contained in:
@@ -137,17 +137,17 @@ class IsoTpParallelQuery:
|
||||
else:
|
||||
response_timeouts[tx_addr] = 0
|
||||
request_done[tx_addr] = True
|
||||
cloudlog.warning(f"iso-tp query bad response: {tx_addr} - 0x{dat.hex()}")
|
||||
cloudlog.error(f"iso-tp query bad response: {tx_addr} - 0x{dat.hex()}")
|
||||
|
||||
cur_time = time.monotonic()
|
||||
if cur_time - max(response_timeouts.values()) > 0:
|
||||
for tx_addr in msgs:
|
||||
if request_counter[tx_addr] > 0 and not request_done[tx_addr]:
|
||||
cloudlog.warning(f"iso-tp query timeout after receiving response: {tx_addr}")
|
||||
cloudlog.error(f"iso-tp query timeout after receiving response: {tx_addr}")
|
||||
break
|
||||
|
||||
if cur_time - start_time > total_timeout:
|
||||
cloudlog.warning("iso-tp query timeout while receiving data")
|
||||
cloudlog.error("iso-tp query timeout while receiving data")
|
||||
break
|
||||
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user