Fix logging: Warn -> Warnf.

ok @davecgh
This commit is contained in:
Josh Rickmar 2014-07-17 11:45:21 -05:00
parent 08c01f08b1
commit 8a7b73e62b

View file

@ -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