Unverified Commit 33c1f224 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #6665 from ipfs/fix/mdns-warning

discovery: improve mdns warnings
parents c102ed08 416195de
......@@ -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)
}
}
......
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