feat(anvil): add optional verbose rpc payload logging #12887
Open
aodhgan wants to merge 31 commits intofoundry-rs:masterfrom
Open
feat(anvil): add optional verbose rpc payload logging #12887aodhgan wants to merge 31 commits intofoundry-rs:masterfrom
aodhgan wants to merge 31 commits intofoundry-rs:masterfrom
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
…nstruction Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
…ary clones Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan * Fix unnecessary Value cloning in RPC payload logging Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com> * Add clarifying comment about RequestParams clone Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
…ds checks Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
…zation Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
…til logging is enabled Co-authored-by: aodhgan <36907214+aodhgan@users.noreply.github.com>
6b27547 to
14e8e1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Often times when testing client integrations I wish to quickly debug what successful RPC calls (and their params) are made. To get around this I typically resort to setting up a Man In the Middle style proxy to simply log the requests and responses, but this is a nuisance.
Solution
This PR introduces a backward compatible optional
--rpc-logflag which, when enabled provides verbose logging of the form:Specific code changes:
PR Checklist
This PR used ChatGPT's copilot for implementation.