Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement custom logging initialization for SP1 package (#193)
* feat: Implement custom logging initialization for SP1 package Configures logging for go through an environment variable. Example usage: ``` SP1_GO_LOG=false cargo test ./cargo test SP1_GO_LOG=true ./cargo test ``` This solution works because: - The init() function in logging.go will run before any other code in the package - Since gnark uses zerolog, setting the global log level will affect all logging throughout the application, including in dependencies - The change is minimal and contained to just one file - It doesn't require any changes to the Rust code or to gnark's source code - It's configurable through an environment variable * Update recursion/gnark-ffi/go/sp1/logging.go Adds an 'off' option Co-authored-by: wwared <[email protected]> --------- Co-authored-by: wwared <[email protected]>
- Loading branch information