mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 12:57:44 +08:00
bootstrap: print error when failed
This commit is contained in:
parent
7ec1a674e3
commit
0cb0f27b68
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user