Skip to content

Commit

Permalink
Fix log statement when disconnecting stalled peers
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverlord authored and ckreibich committed Dec 3, 2024
1 parent e295987 commit f848eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbroker/broker/internal/core_actor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ caf::error core_actor_state::init_new_peer(endpoint_id peer_id,
})
// Disconnect unresponsive peers.
.on_backpressure_buffer(peer_buffer_size(), peer_overflow_policy())
.do_on_error([this, ptr](const caf::error& what) {
CAF_LOG_INFO("remove peer" << peer_id << "due to:" << what);
.do_on_error([this, ptr, peer_id](const caf::error& what) {
BROKER_INFO("remove peer" << peer_id << "due to:" << what);
ptr->force_disconnect();
})
.as_observable());
Expand Down

0 comments on commit f848eb4

Please sign in to comment.