fix logging of dial errors

parent 220eccc6
...@@ -318,7 +318,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma. ...@@ -318,7 +318,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma.
case resp := <-respch: case resp := <-respch:
active-- active--
if resp.Err != nil { if resp.Err != nil {
log.Info("got error on dial to %s: ", resp.Addr, resp.Err) log.Infof("got error on dial to %s: %s", resp.Addr, resp.Err)
// Errors are normal, lots of dials will fail // Errors are normal, lots of dials will fail
exitErr = resp.Err exitErr = resp.Err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment