From 06ed0a349512d3a8aab85730e4578d9313d5a6a0 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Wed, 24 Jan 2024 17:54:37 +0000 Subject: [PATCH] better logging --- go/enclave/nodetype/sequencer.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/go/enclave/nodetype/sequencer.go b/go/enclave/nodetype/sequencer.go index 26771383da..c2f1734893 100644 --- a/go/enclave/nodetype/sequencer.go +++ b/go/enclave/nodetype/sequencer.go @@ -399,7 +399,19 @@ func (s *sequencer) duplicateBatches(l1Head *types.Block, nonCanonicalL1Path []c } func (s *sequencer) SubmitTransaction(transaction *common.L2Tx) error { - s.logger.Trace("Submit tx", "tx", transaction, "type", transaction.Type()) + s.logger.Debug("Submit tx", + log.TxKey, transaction.Hash(), + "type", transaction.Type(), + "payload", gethcommon.Bytes2Hex(transaction.Data()), + "time", transaction.Time(), + "to", transaction.To().Hex(), + "value", transaction.Value().Uint64(), + "size", transaction.Size(), + "nonce", transaction.Nonce(), + "gas", transaction.Gas(), + "gasPrice", transaction.GasPrice().Uint64(), + "chainId", transaction.ChainId().Uint64(), + ) return s.mempool.Add(transaction) }