From 8a7b73e62b01e9bdafc011e8b719e093b2c61661 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 17 Jul 2014 11:45:21 -0500 Subject: [PATCH] Fix logging: Warn -> Warnf. ok @davecgh --- blockmanager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockmanager.go b/blockmanager.go index 6cee488e..4d65899e 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -723,7 +723,7 @@ func (b *blockManager) fetchHeaderBlocks() { iv := btcwire.NewInvVect(btcwire.InvTypeBlock, node.sha) haveInv, err := b.haveInventory(iv) if err != nil { - bmgrLog.Warn("Unexpected failure when checking for "+ + bmgrLog.Warnf("Unexpected failure when checking for "+ "existing inventory during header block "+ "fetch: %v", err) } @@ -922,7 +922,7 @@ func (b *blockManager) handleInvMsg(imsg *invMsg) { // Request the inventory if we don't already have it. haveInv, err := b.haveInventory(iv) if err != nil { - bmgrLog.Warn("Unexpected failure when checking for "+ + bmgrLog.Warnf("Unexpected failure when checking for "+ "existing inventory during inv message "+ "processing: %v", err) continue