Skip to content

Commit

Permalink
Merge pull request #6665 from ipfs/fix/mdns-warning
Browse files Browse the repository at this point in the history
discovery: improve mdns warnings
  • Loading branch information
Stebalien committed Sep 23, 2019
2 parents c102ed0 + 416195d commit 33c1f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/libp2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ type discoveryHandler struct {
}

func (dh *discoveryHandler) HandlePeerFound(p peer.AddrInfo) {
log.Warning("trying peer info: ", p)
log.Info("connecting to discovered peer: ", p)
ctx, cancel := context.WithTimeout(dh.ctx, discoveryConnTimeout)
defer cancel()
if err := dh.host.Connect(ctx, p); err != nil {
log.Warning("Failed to connect to peer found by discovery: ", err)
log.Warningf("failed to connect to peer %s found by discovery: %s", p.ID, err)
}
}

Expand Down

0 comments on commit 33c1f22

Please sign in to comment.