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

Fix debug log formatting issues #37

Merged
merged 1 commit into from
Dec 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
case <-tick.C:
n := bs.wm.WantCount()
if n > 0 {
log.Debug(n, " keys in bitswap wantlist")
log.Debugf("%d keys in bitswap wantlist", n)
}
case <-broadcastSignal.C: // resend unfulfilled wantlist keys
log.Event(ctx, "Bitswap.Rebroadcast.active")
Expand Down Expand Up @@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
defer wg.Done()
err := bs.network.ConnectTo(child, p)
if err != nil {
log.Debug("failed to connect to provider %s: %s", p, err)
log.Debugf("failed to connect to provider %s: %s", p, err)
}
}(p)
}
Expand Down