From 1e1640d9993d83a13ca6fb6dd9aa3943c6b3c66f Mon Sep 17 00:00:00 2001 From: jayy04 <103467857+jayy04@users.noreply.github.com> Date: Fri, 16 Jun 2023 15:53:17 -0400 Subject: [PATCH] Adjust log level for logs in hot path (#8) --- mempool/v1/mempool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mempool/v1/mempool.go b/mempool/v1/mempool.go index 33dbd37fb9..19600e7846 100644 --- a/mempool/v1/mempool.go +++ b/mempool/v1/mempool.go @@ -592,10 +592,10 @@ func (txmp *TxMempool) addNewTransaction(wtx *WrappedTx, checkTxRes *abci.Respon txmp.metrics.TxSizeBytes.Observe(float64(wtx.Size())) txmp.metrics.Size.Set(float64(txmp.Size())) - txmp.logger.Info( + txmp.logger.Debug( "inserted new valid transaction", "priority", wtx.Priority(), - "tx", fmt.Sprintf("%X", wtx.tx.Hash()), + "tx", log.NewLazySprintf("%X", wtx.tx.Hash()), "height", txmp.height, "num_txs", txmp.Size(), )