Skip to content

Conversation

kaimast
Copy link
Collaborator

@kaimast kaimast commented Oct 6, 2025

This PR introduce the LoggableError trait which enables to easily log anyhow::Errors in snarkVM. This allows to have a more uniformed error logging mechanisms across snarkOS/snarkVM.
The PR's changes are also included in #2927, but the latter is already very complex and the logging changes are self-contained.

To see how LoggableError can be used, see the changes in ledger/store in 71a6665.

Notes

  • This changes some of the error logging functions introduced in [Feature] Improve Error Handling #2813, which makes it a breaking change. As far as I know, these functions are not (yet) used outside snarkVM and snarkOS.

@kaimast kaimast force-pushed the feat/loggable-error branch 4 times, most recently from bde959b to d73fc53 Compare October 7, 2025 04:43
@kaimast kaimast changed the base branch from staging to ci/semver-errors October 7, 2025 04:43
@kaimast kaimast force-pushed the ci/semver-errors branch 2 times, most recently from b1e95e4 to 72dd553 Compare October 7, 2025 05:24
Base automatically changed from ci/semver-errors to staging October 7, 2025 20:27
@vicsn vicsn requested a review from ljedrz October 8, 2025 16:59
@kaimast kaimast force-pushed the feat/loggable-error branch from d73fc53 to 0a6d913 Compare October 8, 2025 19:31
@kaimast kaimast marked this pull request as ready for review October 9, 2025 04:41
@kaimast
Copy link
Collaborator Author

kaimast commented Oct 10, 2025

Thanks for the feedback! I updated all the assert messages.

@kaimast kaimast requested a review from ljedrz October 17, 2025 19:57
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