From bbe135595713764c0f129f3d481519627b3445ea Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 11 May 2018 12:09:16 +0400 Subject: [PATCH] log only hash, not tx itself --- mempool/mempool.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mempool/mempool.go b/mempool/mempool.go index 6bffd42b4..aa2aa4f41 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -3,6 +3,7 @@ package mempool import ( "bytes" "container/list" + "fmt" "sync" "sync/atomic" "time" @@ -255,11 +256,11 @@ func (mem *Mempool) resCbNormal(req *abci.Request, res *abci.Response) { tx: tx, } mem.txs.PushBack(memTx) - mem.logger.Debug("Added good transaction", "tx", tx, "res", r) + mem.logger.Info("Added good transaction", "tx", fmt.Sprintf("%X", types.Tx(tx).Hash()), "res", r) mem.notifyTxsAvailable() } else { // ignore bad transaction - mem.logger.Info("Rejected bad transaction", "tx", tx, "res", r) + mem.logger.Info("Rejected bad transaction", "tx", fmt.Sprintf("%X", types.Tx(tx).Hash()), "res", r) // remove from cache (it might be good later) mem.cache.Remove(tx)