Skip to content

Commit

Permalink
rpc/transport: fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathv committed Jun 15, 2023
1 parent f3ea988 commit 14788ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/v/rpc/reconnect_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@ reconnect_transport::reconnect(clock_type::time_point connection_timeout) {
.then_wrapped([this](ss::future<> f) {
try {
f.get();
rpclog.debug(
vlog(
rpclog.debug,
"connected to {}",
_transport->server_address());
_backoff_policy.reset();
return ss::make_ready_future<ret_t>(
_transport);
} catch (...) {
_backoff_policy.next_backoff();
rpclog.trace(
vlog(
rpclog.trace,
"error reconnecting {}",
std::current_exception());
return ss::make_ready_future<ret_t>(
Expand All @@ -106,7 +108,8 @@ reconnect_transport::reconnect(clock_type::time_point connection_timeout) {
})
.handle_exception_type([connection_timeout_duration](
const ss::named_semaphore_timed_out&) {
rpclog.trace(
vlog(
rpclog.trace,
"timeout waiting for RPC reconnect semaphore. timeout "
"duration: {}",
connection_timeout_duration);
Expand Down

0 comments on commit 14788ab

Please sign in to comment.