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

Add RPCs to fetch crash and console logs #229

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

AlCutter
Copy link
Collaborator

This PR provides RPCs which the applet can use to fetch the console (OS+applet) and crash (OS+applet from the last time the applet unexpectedly exited) logs. E.g. to make them available to the custodian via HTTP.

return errors.New("nil buffer passed")
}

*ret = getConsoleLogs()
Copy link
Contributor

Choose a reason for hiding this comment

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

This will only return something in debug mode, as opposed as the other function. Maybe this is something you want to mention here or not? Not blocking for this PR!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup - that's expected, thanks for calling out though!

@AlCutter AlCutter merged commit 629ad8b into transparency-dev:main Mar 26, 2024
3 checks passed
@AlCutter AlCutter deleted the rpc_fetch_logs branch March 26, 2024 11:45
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.

3 participants