From a078e8838f28ba7441bd93d853a4437f2e74305d Mon Sep 17 00:00:00 2001 From: hanabi95 Date: Sat, 22 May 2021 13:18:56 +0900 Subject: [PATCH] fingerprint cloudlog event (#20950) --- selfdrive/car/car_helpers.py | 2 +- selfdrive/controls/plannerd.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/car_helpers.py b/selfdrive/car/car_helpers.py index 9455e0079e1b83..a7107a03c95621 100644 --- a/selfdrive/car/car_helpers.py +++ b/selfdrive/car/car_helpers.py @@ -165,7 +165,7 @@ def fingerprint(logcan, sendcan, has_relay): car_fingerprint = fixed_fingerprint source = car.CarParams.FingerprintSource.fixed - cloudlog.warning("fingerprinted %s", car_fingerprint) + cloudlog.event("fingerprinted", car_fingerprint=car_fingerprint, source=source, fuzzy=not exact_match) return car_fingerprint, finger, vin, car_fw, source, exact_match diff --git a/selfdrive/controls/plannerd.py b/selfdrive/controls/plannerd.py index a2c650fa193aee..235bafc41b67b6 100755 --- a/selfdrive/controls/plannerd.py +++ b/selfdrive/controls/plannerd.py @@ -20,6 +20,8 @@ def plannerd_thread(sm=None, pm=None): use_lanelines = not params.get_bool('EndToEndToggle') wide_camera = params.get_bool('EnableWideCamera') if TICI else False + cloudlog.event("e2e mode", on=use_lanelines) + longitudinal_planner = Planner(CP) lateral_planner = LateralPlanner(CP, use_lanelines=use_lanelines, wide_camera=wide_camera)