Skip to content

Commit

Permalink
rpc/server: Print info log on client disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
parazyd committed Dec 7, 2023
1 parent 0c469fb commit b2c4000
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ async fn run_accept_loop(
task.clone().start(
accept(reader, writer, url.clone(), rh.clone(), conn_limit, ex_),
|_| async move {
info!(target: "rpc::server", "[RPC] Closed conn from {}", url);
rh_.clone().unmark_connection(task_.clone()).await;
},
Error::ChannelStopped,
Expand Down

0 comments on commit b2c4000

Please sign in to comment.