pstoremgr: reduce verbosity

Since we bootstrap regularly know this causes lots of verbosity
in the console, specially when a bootstrap peer is not there.
This commit is contained in:
Hector Sanjuan 2019-06-13 23:16:58 +02:00
parent 97549152cc
commit 10947c837a

View File

@ -311,14 +311,14 @@ func (pm *Manager) Bootstrap(count int) []peer.ID {
continue
}
logger.Infof("connecting to %s", pinfo.ID)
logger.Debugf("connecting to %s", pinfo.ID)
err := pm.host.Connect(ctx, pinfo)
if err != nil {
logger.Warning(err)
logger.Debug(err)
pm.SetPriority(pinfo.ID, 9999)
continue
}
logger.Infof("connected to %s", pinfo.ID)
logger.Debugf("connected to %s", pinfo.ID)
totalConns++
connectedPeers = append(connectedPeers, pinfo.ID)
}