mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 05:18:03 -05:00
improve logging
This commit is contained in:
@@ -14,8 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const dialInterval = 500 * time.Millisecond
|
||||
const peerCountLogInterval = 1 * time.Minute
|
||||
const topicMonitorInterval = 1 * time.Second
|
||||
const peerCountLogInterval = 5 * time.Minute
|
||||
const topicMonitorInterval = 200 * time.Millisecond
|
||||
|
||||
// GossipPeerDialer maintains minimum peer counts for gossip topics by periodically
|
||||
// dialing new peers discovered by a crawler. It runs a background loop that checks each
|
||||
@@ -121,7 +121,7 @@ func (g *GossipPeerDialer) logPeerCountsLoop() {
|
||||
log.WithField("topic", topic).
|
||||
WithField("currentPeers", currentPeers).
|
||||
WithField("minPeers", minPeers).
|
||||
Info("Gossip topic peer count")
|
||||
Debug("Gossip topic peer count")
|
||||
}
|
||||
|
||||
case <-g.ctx.Done():
|
||||
|
||||
@@ -171,7 +171,7 @@ func (cp *crawledPeers) logPeerCounts() {
|
||||
log.WithField("topic", topic).
|
||||
WithField("totalPeers", len(peers)).
|
||||
WithField("pingedPeers", pingedCount).
|
||||
Info("Crawler indexed peers for topic")
|
||||
Debug("Crawler indexed peers for topic")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ var (
|
||||
// defined below.
|
||||
pollingPeriod = 6 * time.Second
|
||||
|
||||
crawlTimeout = 30 * time.Second
|
||||
crawlTimeout = 5 * time.Second
|
||||
crawlInterval = 1 * time.Second
|
||||
maxConcurrentDials = int64(256)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user