[log] use debug level for non-critical log in txpool

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3630/head
Leo Chen 4 years ago
parent 89341839bc
commit 602c08b587
  1. 4
      core/tx_pool.go

@ -1301,7 +1301,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) {
hash := tx.Hash()
pool.all.Remove(hash)
pool.priced.Removed()
logger.Info().Str("hash", hash.Hex()).Msg("Removed old queued transaction")
logger.Debug().Str("hash", hash.Hex()).Msg("Removed old queued transaction")
// Do not report to error sink as old txs are on chain or meaningful error caught elsewhere.
}
// Drop all transactions that are too costly (low balance or out of gas)
@ -1474,7 +1474,7 @@ func (pool *TxPool) demoteUnexecutables() {
hash := tx.Hash()
pool.all.Remove(hash)
pool.priced.Removed()
logger.Info().Str("hash", hash.Hex()).Msg("Removed old pending transaction")
logger.Debug().Str("hash", hash.Hex()).Msg("Removed old pending transaction")
// Do not report to error sink as old txs are on chain or meaningful error caught elsewhere.
}
// Drop all transactions that are too costly (low balance or out of gas), and queue any invalids back for later

Loading…
Cancel
Save