Commit 59856daf authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

dht: bit nicer logging

parent 67ea1c81
......@@ -126,7 +126,7 @@ func (dht *IpfsDHT) putProvider(ctx context.Context, p peer.ID, key string) erro
return err
}
log.Debugf("%s putProvider: %s for %s", dht.self, p, u.Key(key))
log.Debugf("%s putProvider: %s for %s (%s)", dht.self, p, u.Key(key), pi.Addrs)
return nil
}
......
......@@ -219,7 +219,7 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M
}
if len(pi.Addrs) < 1 {
log.Errorf("got no valid addresses for provider %s. Ignore.", p)
log.Errorf("%s got no valid addresses for provider %s. Ignore.", dht.self, p)
continue
}
......
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