From fc9a0bd1b050caf42af944ddd9f01b880c263eb8 Mon Sep 17 00:00:00 2001 From: Yiming Zang <50607998+yzang2019@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:06:55 +0800 Subject: [PATCH] Suppress noisy chainID logs (#1892) --- 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 4d0ed5a8c..c23cce69c 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 } }