Unverified Commit ce22eba3 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #37 from karalabe/fix-debug-logs

Fix debug log formatting issues
parents 18c401d8 eddd2b9d
...@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) { ...@@ -205,7 +205,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
case <-tick.C: case <-tick.C:
n := bs.wm.WantCount() n := bs.wm.WantCount()
if n > 0 { 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 case <-broadcastSignal.C: // resend unfulfilled wantlist keys
log.Event(ctx, "Bitswap.Rebroadcast.active") log.Event(ctx, "Bitswap.Rebroadcast.active")
...@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) { ...@@ -259,7 +259,7 @@ func (bs *Bitswap) providerQueryManager(ctx context.Context) {
defer wg.Done() defer wg.Done()
err := bs.network.ConnectTo(child, p) err := bs.network.ConnectTo(child, p)
if err != nil { 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) }(p)
} }
......
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