Skip to content

Commit

Permalink
Add log that we least active peer was active
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsa committed Oct 18, 2024
1 parent 9730242 commit 1d33cd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/network/impl/peer_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,9 @@ namespace kagome::network {
// align period
if (it->second.time_point
> clock_->now() - app_config_.peeringConfig().aligningPeriod) {
SL_INFO(log_,
"Least active peer {} has been active within last align period",
it->first);
return PeerId{};
}

Expand Down

0 comments on commit 1d33cd3

Please sign in to comment.