From 82effff3b07ae72f221e346801d7735219b271f4 Mon Sep 17 00:00:00 2001 From: Daniel T <30197399+danwt@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:54:57 +0000 Subject: [PATCH] chore: make log quieter in cosmos query cycle (#52) --- relayer/chains/cosmos/cosmos_chain_processor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/relayer/chains/cosmos/cosmos_chain_processor.go b/relayer/chains/cosmos/cosmos_chain_processor.go index 9e4e6176a..3d5216b79 100644 --- a/relayer/chains/cosmos/cosmos_chain_processor.go +++ b/relayer/chains/cosmos/cosmos_chain_processor.go @@ -405,9 +405,10 @@ func (ccp *CosmosChainProcessor) queryCycle( firstHeightToQuery++ } - ccp.log.Info("Starting query cycle", zap.Any("chain", chainID), zap.Any("first height", firstHeightToQuery)) - for heightToQuery := firstHeightToQuery; heightToQuery <= persistence.latestHeight; heightToQuery++ { + if heightToQuery == firstHeightToQuery { + ccp.log.Debug("Starting query cycle", zap.Any("chain", chainID), zap.Any("first height", firstHeightToQuery)) + } var ( eg errgroup.Group blockRes *coretypes.ResultBlockResults