Skip to content

Commit

Permalink
chore: add chain and client ids to incomplete flush log output
Browse files Browse the repository at this point in the history
  • Loading branch information
jtieri committed Mar 14, 2024
1 parent c4eac28 commit 7fb3400
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion relayer/processor/path_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,12 @@ func (pp *PathProcessor) HandleNewData(chainID string, cacheData ChainProcessorC
func (pp *PathProcessor) handleFlush(ctx context.Context) {
flushTimer := pp.flushInterval
if err := pp.flush(ctx); err != nil {
pp.log.Warn("Flush not complete", zap.Error(err))
pp.log.Warn("Flush not complete",
zap.String("chain_id_1", pp.pathEnd1.chainProvider.ChainId()),
zap.String("client_id_1", pp.pathEnd1.info.ClientID),
zap.String("chain_id_2", pp.pathEnd2.chainProvider.ChainId()),
zap.String("client_id_2", pp.pathEnd2.info.ClientID),
zap.Error(err))
flushTimer = flushFailureRetry
}
pp.flushTimer.Stop()
Expand Down

0 comments on commit 7fb3400

Please sign in to comment.