Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ce22eba

Browse files
authored
Merge pull request #37 from karalabe/fix-debug-logs
Fix debug log formatting issues
2 parents 18c401d + eddd2b9 commit ce22eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)