From efb54784c8ac5378e70cebfd17dcdd36f6f50711 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 4 Oct 2013 13:35:28 -0500 Subject: [PATCH] Log rejected blocks and transactions as info. Rather than logging these as warnings which implies something is wrong that might require user action, log them as info. --- blockmanager.go | 2 +- peer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blockmanager.go b/blockmanager.go index 5c53a885..8f5f408a 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -283,7 +283,7 @@ func (b *blockManager) handleBlockMsg(bmsg *blockMsg) { // it as such. Otherwise, something really did go wrong, so log // it as an actual error. if _, ok := err.(btcchain.RuleError); ok { - log.Warnf("[BMGR] Rejected block %v: %v", blockSha, err) + log.Infof("[BMGR] Rejected block %v: %v", blockSha, err) } else { log.Errorf("[BMGR] Failed to process block %v: %v", blockSha, err) } diff --git a/peer.go b/peer.go index 73cb4c43..b7f24316 100644 --- a/peer.go +++ b/peer.go @@ -422,7 +422,7 @@ func (p *peer) handleTxMsg(msg *btcwire.MsgTx) { // so log it as such. Otherwise, something really did go wrong, // so log it as an actual error. if _, ok := err.(TxRuleError); ok { - log.Warnf("Rejected transaction %v: %v", hash, err) + log.Infof("Rejected transaction %v: %v", hash, err) } else { log.Errorf("Failed to process transaction %v: %v", hash, err) }