Skip to content

Commit

Permalink
Merge pull request redpanda-data#11465 from bharathv/fix_logging_tran…
Browse files Browse the repository at this point in the history
…sport

rpc/transport: fix logging
  • Loading branch information
piyushredpanda authored Jun 23, 2023
2 parents 01e5279 + 14788ab commit b63459d
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 b63459d

Please sign in to comment.