bootstrap: print error when failed

This commit is contained in:
Juan Batiz-Benet 2015-01-12 19:09:38 -08:00
parent 7ec1a674e3
commit 0cb0f27b68

View File

@ -117,7 +117,7 @@ func connect(ctx context.Context, ps peer.Peerstore, r *dht.IpfsDHT, peers []pee
err := r.Connect(ctx, p.ID)
if err != nil {
log.Event(ctx, "bootstrapFailed", p.ID)
log.Criticalf("failed to bootstrap with %v", p.ID)
log.Criticalf("failed to bootstrap with %v: %s", p.ID, err)
return
}
log.Event(ctx, "bootstrapSuccess", p.ID)