Skip to content

Commit 7eac8c9

Browse files
authored
fix: print enum variant name for RPC debug logs (#1503)
## Description Right now in the debug logs we print the following for each incoming RPC request: ``` handling rpc request: quic_rpc::transport::flume::FlumeServerEndpoint<iroh::rpc_protocol::ProviderRequest, iroh::rpc_protocol::ProviderResponse> ``` which is very long and not useful because it contains no info at all about incoming request. Before that, we printed the full Debug impl, which contained too much (especially bytes). This PR changes it to just print the enum variant name, so e.g. ``` handling rpc request: BlobRead ``` Also removes a debug leftover `println`. ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant.
1 parent f32ac21 commit 7eac8c9

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Cargo.lock

Lines changed: 25 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)