From f4415169c04b9bd9952a4d0f766a042b1271e36b Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Mon, 10 Jun 2024 08:17:28 +0200 Subject: [PATCH] Add error logging for invalid requests in athenad.py An error logging line was added in athenad.py to capture and log the details of any invalid requests received. This additional error handling measure will help to maintain the standards of incoming requests and provide clearer debugging information. --- selfdrive/athena/athenad.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index d5b1e37ce1..37f74bc096 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -178,6 +178,7 @@ def jsonrpc_handler(end_event: threading.Event) -> None: elif "id" in data and ("result" in data or "error" in data): log_recv_queue.put_nowait(data) else: + cloudlog.error("athena.jsonrpc_handler.invalid_request", data=data) raise Exception("not a valid request or response") except queue.Empty: pass