Skip to content

Commit

Permalink
feat: fixed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsainju committed Aug 9, 2024
1 parent 7ce2a03 commit 1b952ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relayer/chains/wasm/wasm_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (ccp *WasmChainProcessor) queryCycle(ctx context.Context, persistence *quer
zap.Any("delta", delta))
status, err := ccp.chainProvider.BlockRPCClient.Status(ctx)
if err != nil {
ccp.log.Warn("Error occurred fetching block status")
ccp.log.Warn("Error occurred fetching block status", zap.Error(err))
return nil
}
if persistence.latestQueriedBlock > status.SyncInfo.LatestBlockHeight &&
Expand All @@ -491,7 +491,7 @@ func (ccp *WasmChainProcessor) queryCycle(ctx context.Context, persistence *quer
}
blocks, err = ccp.getBlocksToProcess(ctx, persistence.latestQueriedBlock+1)
if err != nil {
ccp.log.Info("error occurred getting blocks")
ccp.log.Warn("error occurred getting blocks", zap.Error(err))
return nil
}
maxBlock := findMaxBlock(blocks)
Expand Down

0 comments on commit 1b952ce

Please sign in to comment.