Skip to content

Commit

Permalink
add a debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Dec 9, 2024
1 parent 3abbaf9 commit b730ea4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/operator/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ var StartNodeCmd = &cobra.Command{
}
}
idealMaxPeers := min(baseMaxPeers+peersPerSubnet*myActiveSubnets, maxPeersLimit)

logger.Info("debugging MaxPeers",
zap.Int("cfg.P2pNetworkConfig.MaxPeers", cfg.P2pNetworkConfig.MaxPeers),
zap.Int("idealMaxPeers", idealMaxPeers),
)

if cfg.P2pNetworkConfig.MaxPeers < idealMaxPeers {
logger.Warn("increasing MaxPeers to match the operator's subscribed subnets",
zap.Int("old_max_peers", cfg.P2pNetworkConfig.MaxPeers),
Expand Down

0 comments on commit b730ea4

Please sign in to comment.