Skip to content

Commit

Permalink
Downgrade no heartbeat scenario logging
Browse files Browse the repository at this point in the history
When RMQ connection is disconnected due to no heartbeat, there are multiple ERROR traces that are logged. This reduces the noise. 

Signed-off-by: Will <[email protected]>
  • Loading branch information
willhoy committed Jan 17, 2024
1 parent 68bcaa8 commit ce7c0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rmq/rmqamqp/rmqamqp_heartbeatmanagerimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ void HeartbeatManagerImpl::handleTick(rmqio::Timer::InterruptReason reason)
d_ticksUntilHeartBeat = d_totalTicksUntilHeartBeat;
}
if (d_ticksUntilDisconnect == 0) {
BALL_LOG_ERROR << "Received no heartbeats for " << d_timeoutSeconds
<< "seconds. Triggering connection termination";
BALL_LOG_WARN << "Received no heartbeats for " << d_timeoutSeconds
<< "seconds. Triggering connection termination";
d_killConnection();
d_ticksUntilDisconnect = d_totalTicksUntilDisconnect;
}
Expand Down

0 comments on commit ce7c0d8

Please sign in to comment.