Skip to content

Commit c0e13aa

Browse files
authored
Merge pull request ipfs/go-bitswap#37 from karalabe/fix-debug-logs
Fix debug log formatting issues This commit was moved from ipfs/go-bitswap@ce22eba
2 parents 03ef671 + c343f12 commit c0e13aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitswap/workers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
205205
case <-tick.C:
206206
n := bs.wm.WantCount()
207207
if n > 0 {
208-
log.Debug(n, " keys in bitswap wantlist")
208+
log.Debugf("%d keys in bitswap wantlist", n)
209209
}
210210
case <-broadcastSignal.C: // resend unfulfilled wantlist keys
211211
log.Event(ctx, "Bitswap.Rebroadcast.active")
@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
259259
defer wg.Done()
260260
err := bs.network.ConnectTo(child, p)
261261
if err != nil {
262-
log.Debug("failed to connect to provider %s: %s", p, err)
262+
log.Debugf("failed to connect to provider %s: %s", p, err)
263263
}
264264
}(p)
265265
}

0 commit comments

Comments
 (0)