Skip to content

Commit

Permalink
chore(scan-identifiers): Do not log SubFunctionNotSupported replies
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Oct 23, 2024
1 parent 3b7640d commit cf6b8df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gallia/commands/scan/uds/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cf6b8df

Please sign in to comment.