Skip to content

Commit fb73308

Browse files
committed
Add debug log for saturated peers
1 parent 2b8741f commit fb73308

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rolling-shutter/p2p/dht.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func findPeers(ctx context.Context, h host.Host, d discovery.Discoverer, ns stri
7676
case <-ticker.C:
7777
peersBefore := len(h.Network().Peers())
7878
if peersBefore >= peerTarget {
79+
log.Debug().Int("peers-before", peersBefore).Int("peer-target", peerTarget).Msg("have enough peers")
7980
continue
8081
}
8182

0 commit comments

Comments
 (0)