From 5c2afa8fa15ad4339a8529b82e97024ce2ee5125 Mon Sep 17 00:00:00 2001 From: yzang2019 Date: Tue, 8 Oct 2024 12:17:04 +0800 Subject: [PATCH] Suppress noisy chainID logs --- x/evm/ante/sig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/evm/ante/sig.go b/x/evm/ante/sig.go index 4d0ed5a8c2..c23cce69c4 100644 --- a/x/evm/ante/sig.go +++ b/x/evm/ante/sig.go @@ -47,13 +47,13 @@ func (svd *EVMSigVerifyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat case ethtypes.LegacyTxType: // legacy either can have a zero or correct chain ID if txChainID.Cmp(big.NewInt(0)) != 0 && txChainID.Cmp(chainID) != 0 { - ctx.Logger().Error("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID) + ctx.Logger().Debug("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID) return ctx, sdkerrors.ErrInvalidChainID } default: // after legacy, all transactions must have the correct chain ID if txChainID.Cmp(chainID) != 0 { - ctx.Logger().Error("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID) + ctx.Logger().Debug("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID) return ctx, sdkerrors.ErrInvalidChainID } }