Log transactions rejected from mempool as debug.

Most users won't care if a freestanding transaction is rejected from due
to a rule violation, but the information should still be available to
debug.
This commit is contained in:
Dave Collins 2013-10-07 18:45:53 -05:00
parent 849c830cf8
commit 19d28f90e6

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.Infof("Rejected transaction %v: %v", hash, err)
log.Debugf("Rejected transaction %v: %v", hash, err)
} else {
log.Errorf("Failed to process transaction %v: %v", hash, err)
}