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.
This commit is contained in:
Dave Collins 2013-10-04 13:35:28 -05:00
parent 223d146a10
commit efb54784c8
2 changed files with 2 additions and 2 deletions

View file

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

View file

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