Commit d4c819e9 authored by Jeromy's avatar Jeromy

log -> logf

parent 1bde67dd
...@@ -114,7 +114,7 @@ func (bs *bitswap) Block(parent context.Context, k u.Key) (*blocks.Block, error) ...@@ -114,7 +114,7 @@ func (bs *bitswap) Block(parent context.Context, k u.Key) (*blocks.Block, error)
response, err := bs.sender.SendRequest(ctx, p, message) response, err := bs.sender.SendRequest(ctx, p, message)
if err != nil { if err != nil {
log.Error("Error sender.SendRequest(%s) = %s", p, err) log.Errorf("Error sender.SendRequest(%s) = %s", p, err)
return return
} }
// FIXME ensure accounting is handled correctly when // FIXME ensure accounting is handled correctly when
......
...@@ -162,7 +162,7 @@ func (dht *IpfsDHT) addPeerListAsync(ctx context.Context, k u.Key, peers []*pb.M ...@@ -162,7 +162,7 @@ func (dht *IpfsDHT) addPeerListAsync(ctx context.Context, k u.Key, peers []*pb.M
// construct new peer // construct new peer
p, err := dht.ensureConnectedToPeer(ctx, mp) p, err := dht.ensureConnectedToPeer(ctx, mp)
if err != nil { if err != nil {
log.Error("%s", err) log.Errorf("%s", err)
return return
} }
if p == nil { if p == nil {
......
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