Skip to content

Commit

Permalink
Adjust log level for logs in hot path (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 authored and roy-dydx committed Jul 2, 2023
1 parent 0baa6ea commit 1e1640d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mempool/v1/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down

0 comments on commit 1e1640d

Please sign in to comment.