change debug to debugf

This commit is contained in:
lanzafame 2020-07-22 10:40:41 +10:00
parent 8c4d7b431b
commit 6f04b1dbd8

View File

@ -132,7 +132,7 @@ func (pmgr *PeerMgr) Run(ctx context.Context) {
if pcount < pmgr.minFilPeers { if pcount < pmgr.minFilPeers {
pmgr.expandPeers() pmgr.expandPeers()
} else if pcount > pmgr.maxFilPeers { } else if pcount > pmgr.maxFilPeers {
log.Debug("peer count about threshold: %d > %d", pcount, pmgr.maxFilPeers) log.Debugf("peer count about threshold: %d > %d", pcount, pmgr.maxFilPeers)
} }
stats.Record(ctx, metrics.PeerCount.M(int64(pmgr.getPeerCount()))) stats.Record(ctx, metrics.PeerCount.M(int64(pmgr.getPeerCount())))
case <-pmgr.done: case <-pmgr.done: