Skip to content

No logs forge inspect json#76

Closed
GiovanniTorrisi-ChainSecurity wants to merge 2 commits intomainfrom
no-logs-forge-inspect-json
Closed

No logs forge inspect json#76
GiovanniTorrisi-ChainSecurity wants to merge 2 commits intomainfrom
no-logs-forge-inspect-json

Conversation

@GiovanniTorrisi-ChainSecurity
Copy link
Collaborator

Steps to reproduce:

  • Have RUST_LOG="debug" in your environment.
  • Try to initialise a DVF.

Result:

Reason:

When RUST_LOG="debug" the forge inspect outputs its logs in the stdout, together with the JSON string requested. The result is that the storage layout JSON string contains output logs and cannot be parsed into an object.

Solution:

Run forge inspect with RUST_LOG="error". We expect forge inspect to only output the JSON result in the stdout or an error, not logs.

@GiovanniTorrisi-ChainSecurity GiovanniTorrisi-ChainSecurity deleted the no-logs-forge-inspect-json branch June 12, 2025 12:02
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.

1 participant