From cf6b8df1b3460c9cb3182f6715d5e8e65cdb0b05 Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Fri, 18 Oct 2024 13:01:59 +0200 Subject: [PATCH] chore(scan-identifiers): Do not log SubFunctionNotSupported replies --- src/gallia/commands/scan/uds/identifiers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallia/commands/scan/uds/identifiers.py b/src/gallia/commands/scan/uds/identifiers.py index f614336ab..c98301557 100644 --- a/src/gallia/commands/scan/uds/identifiers.py +++ b/src/gallia/commands/scan/uds/identifiers.py @@ -210,7 +210,11 @@ async def perform_scan(self, args: Namespace, session: None | int = None) -> Non break # RequestOutOfRange is a common reply for invalid/unknown DataIdentifiers - elif resp.response_code == UDSErrorCodes.requestOutOfRange: + # SubFunctionNotSupported is also not worth to be logged as result + elif resp.response_code in ( + UDSErrorCodes.requestOutOfRange, + UDSErrorCodes.subFunctionNotSupported, + ): logger.info(f"{g_repr(DID)}: {resp}") else: