-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Open
Labels
Description
Rationale
When a JSON-RPC request is sent to the node, it would be nice to be able to capture a log of the parameters that were sent.
Currently, even at maximum verbosity level, all JSON-RPC requests seem to be logged at DEBUG
level at the time the request is served:
DEBUG[12-15|16:41:42.323] Served eth_getBlockByNumber conn=192.168.15.20:56660 reqid=1 t="573.915µs"
DEBUG[12-15|16:43:52.926] Served eth_getTransactionByHash conn=192.168.10.50:37144 reqid=1 t=2.481519ms
And as you can see, there's no indication what block was requested, what transaction hash was requested, etc.
Implementation
I think it would make sense to add the rpc request parameters under DETAIL level (or DEBUG, whatever makes sense)