From f7b5cddda4bb700f556ed90873d81ccb2d15af13 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sun, 18 Sep 2016 00:36:27 +0200 Subject: [PATCH] dht: degrade 'no addresses' from error to debug License: MIT Signed-off-by: Jakub Sztandera --- routing/dht/handlers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routing/dht/handlers.go b/routing/dht/handlers.go index ea539a95d9e5..7e366c2a7bc0 100644 --- a/routing/dht/handlers.go +++ b/routing/dht/handlers.go @@ -8,9 +8,10 @@ import ( ds "gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore" key "gx/ipfs/Qmce4Y4zg3sYr7xKM5UueS67vhNni6EeWgCRnb7MbLJMew/go-key" - pb "github.com/ipfs/go-ipfs/routing/dht/pb" lgbl "gx/ipfs/QmYrv4LgCC8FhG2Ab4bwuq5DqBdwMtx3hMb3KKJDZcr2d7/go-libp2p-loggables" + pb "github.com/ipfs/go-ipfs/routing/dht/pb" + peer "gx/ipfs/QmWXjJo15p4pzT7cayEwZi2sWgJqLnGDof6ZGMh9xBgU1p/go-libp2p-peer" proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto" u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util" @@ -70,7 +71,7 @@ func (dht *IpfsDHT) handleGetValue(ctx context.Context, p peer.ID, pmes *pb.Mess for _, pi := range closerinfos { log.Debugf("handleGetValue returning closer peer: '%s'", pi.ID) if len(pi.Addrs) < 1 { - log.Errorf(`no addresses on peer being sent! + log.Debugf(`no addresses on peer being sent! [local:%s] [sending:%s] [remote:%s]`, dht.self, pi.ID, p)