Skip to content

Don't log expected error on each guest function call #662

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Jun 25, 2025

Currently, 3 error records gets logged for each guest function call, successful or not. This is because the way we check if an error happened is by trying to deserialize a GuestError. If this deserialization fails (which it does in case of a successful guest function call), 3 errors gets logged. See #497 for more info.

This PR is just a short term fix. We should not rely on this "trying to deserialize an error" for error handling. I'm leaving the linked issue open, so that we can address this properly in the future.

@ludfjig ludfjig merged commit 5a5b7e6 into hyperlight-dev:main Jun 25, 2025
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bugfix For PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants