Skip to content

Commit

Permalink
log out addr from the handle
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Dec 10, 2024
1 parent 1db8cfb commit e0ca640
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/katana/rpc/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ impl RpcServer {
RpcServerHandle { addr, handle }

Check warning on line 131 in crates/katana/rpc/rpc/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/rpc/rpc/src/lib.rs#L131

Added line #L131 was not covered by tests
};

info!(target: "rpc", %addr, "RPC server started.");
// The socket address that we log out must be from the RPC handle, in the case that the
// `addr` passed to this method has port number 0. As the 0 port will be resolved to
// a free port during the call to `ServerBuilder::build(addr)`.

info!(target: "rpc", addr = %handle.addr, "RPC server started.");

Ok(handle)
}
Expand Down

0 comments on commit e0ca640

Please sign in to comment.