From d1140cc6440c9dba795743dd0f0b82915879fbb7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 6 Aug 2024 00:08:39 -0700 Subject: [PATCH] fingerprinted: log platform string This does get safely converted to a string in the logs, but in the console it's the repr --- selfdrive/car/car_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/car_helpers.py b/selfdrive/car/car_helpers.py index 9e2e44de62..4392a6853a 100644 --- a/selfdrive/car/car_helpers.py +++ b/selfdrive/car/car_helpers.py @@ -157,7 +157,7 @@ def fingerprint(logcan, sendcan, set_obd_multiplexing, num_pandas): car_fingerprint = fixed_fingerprint source = car.CarParams.FingerprintSource.fixed - carlog.error({"event": "fingerprinted", "car_fingerprint": car_fingerprint, "source": source, "fuzzy": not exact_match, + carlog.error({"event": "fingerprinted", "car_fingerprint": str(car_fingerprint), "source": source, "fuzzy": not exact_match, "cached": cached, "fw_count": len(car_fw), "ecu_responses": list(ecu_rx_addrs), "vin_rx_addr": vin_rx_addr, "vin_rx_bus": vin_rx_bus, "fingerprints": repr(finger), "fw_query_time": fw_query_time})