Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove audit and logger statement from extensions request check #1828

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

jjcarstens
Copy link
Collaborator

Older versions of NervesHubLink would crash if an unknown messages was pushed down over the socket. Since extensions required a new message, this could fail badly on older devices and so a check was put in place to verify the Device API version NHL was reporting to know if it is safe to request extension info or not.

This removes the audit log and logger statement that was happening when this safe check would not pass meaning the device version was too old to request. However, this happens with every socket connection and can produce incredible amount of noise.

If that level of info is needed, I suggest a future change which shows the device version reported and what that means for support on the device (i.e. in the Device settings page perhaps?)

Older versions of NervesHubLink would crash if an unknown messages was
pushed down over the socket. Since extensions required a new message,
this could fail badly on older devices and so a check was put in
place to verify the Device API version NHL was reporting to know
if it is safe to request extension info or not.

This removes the audit log _and_ logger statement that was happening
when this safe check would not pass meaning the device version was
too old to request. However, this happens with _every_ socket connection
and can produce incredible amount of noise.

If that level of info is needed, I suggest a future change which shows
the device version reported and what that means for support on the device
(i.e. in the Device settings page perhaps?)
@jjcarstens jjcarstens requested review from joshk, lawik and nshoes January 24, 2025 19:22
Copy link
Contributor

@nshoes nshoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫡

@nshoes nshoes merged commit a9884a8 into main Jan 24, 2025
2 checks passed
@nshoes nshoes deleted the remove-api-audit branch January 24, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants