log connection error
This commit is contained in:
parent
d7cae8e32e
commit
61b9c03aad
@ -76,9 +76,8 @@ func (d *dialer) Dial(ctx context.Context, peerId string) (p peer.Peer, err erro
|
|||||||
for _, addr := range addrs {
|
for _, addr := range addrs {
|
||||||
conn, sc, err = d.handshake(ctx, addr)
|
conn, sc, err = d.handshake(ctx, addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("can't connect to host", zap.String("addr", addr))
|
log.Info("can't connect to host", zap.String("addr", addr), zap.Error(err))
|
||||||
} else {
|
} else {
|
||||||
err = nil
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user