@cryptotaxi247 / kubo / commits / 2497c9389

log(core) bootstrapping error -> critical

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 18, 2014 at 14:43 UTC 2497c93897e2cb1b1b8b069476b55ee798a57d18
1 file changed +3 -3
core/core.go
+3 -3
@@ -244,7 +244,7 @@ func initIdentity(cfg *config.Identity, peers peer.Peerstore, online bool) (peer
244 func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerstore, route *dht.IpfsDHT) {
245 for _, p := range cfg.Bootstrap {
246 if p.PeerID == "" {
247 - log.Errorf("error: peer does not include PeerID. %v", p)
247 + log.Criticalf("error: peer does not include PeerID. %v", p)
248 }
249
250 maddr, err := ma.NewMultiaddr(p.Address)
@@ -256,13 +256,13 @@ func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerst
256 // setup peer
257 npeer, err := pstore.Get(peer.DecodePrettyID(p.PeerID))
258 if err != nil {
259 - log.Errorf("Bootstrapping error: %v", err)
259 + log.Criticalf("Bootstrapping error: %v", err)
260 continue
261 }
262 npeer.AddAddress(maddr)
263
264 if _, err = route.Connect(ctx, npeer); err != nil {
265 - log.Errorf("Bootstrapping error: %v", err)
265 + log.Criticalf("Bootstrapping error: %v", err)
266 }
267 }
268 }