log connection error

This commit is contained in:
Sergey Cherepanov 2023-01-15 17:13:17 +03:00
parent 265b64b6f0
commit 4e7c3840ac
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -76,9 +76,8 @@ func (d *dialer) Dial(ctx context.Context, peerId string) (p peer.Peer, err erro
for _, addr := range addrs {
conn, sc, err = d.handshake(ctx, addr)
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 {
err = nil
break
}
}