Skip to content

Commit

Permalink
adds some more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Nov 14, 2024
1 parent fdd5e43 commit 358b2bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion relayer/chains/cosmos/cosmos_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ 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++ {
var (
eg errgroup.Group
Expand All @@ -425,7 +427,8 @@ func (ccp *CosmosChainProcessor) queryCycle(
for {
select {
case <-t.C:
ccp.log.Debug("Long running block results query is still ongoing", zap.Any("elapsed", time.Since(y)), zap.Any("chain", chainID), zap.Any("height", h))
ccp.log.Debug("Long running block results query is still ongoing",
zap.Any("elapsed", time.Since(y)), zap.Any("chain", chainID), zap.Any("height", h))
case <-c:
t.Stop()
return
Expand Down

0 comments on commit 358b2bc

Please sign in to comment.