Add --debug
global flag
#2852
Labels
A: good-first-issue
Admin: good for newcomers
A: low-priority
Admin: low priority / non urgent issue, expect longer wait time for PR reviews
I: rpc
Internal: related to (g)RPC
O: new-feature
Objective: cause to add a new feature or support
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Summary
Add a
--debug
flag which can either be be repeated (--debug=rpc --debug=profiling
) or take a comma-separated list of sections to enable debugging for (--debug=rpc,profiling
), or a combination of the two.The former is easier to use when invoking Hermes from scripts etc, while the latter is shorted to type when invoked manually.
rpc
Passing
--debug=rpc
to Hermes has the effect of printing out the outgoing and incoming RPC requests, having the same effect as settingtendermint_rpc=debug
to the tracing filter.profiling
Passing
--debug=profiling
to Hermes which enables the profiling output.Problem Definition
It's easier to instruct users to add a flag to their Hermes command rather than ask them to set an esoteric variable to a cryptic value.
Proposal
As above.
Acceptance Criteria
Hermes can take a global
--debug
flag which can take therpc
value and print out the incoming and outgoing RPC requests.For Admin Use
The text was updated successfully, but these errors were encountered: