Skip to content

Commit

Permalink
feat: refactor error message in batch_consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
pinarrkok committed Dec 22, 2024
1 parent 3118740 commit 4e38c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batch_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ func (b *batchConsumer) process(chunkMessages []*Message) {

if err := b.retryBatchWithBackoff(cronsumerMessages); err != nil {
errorMsg := fmt.Sprintf(
"Error producing messages to exception/retry topic. Error: %s", err.Error())
"Error producing messages to exception/retry topic: %s. Error: %s", b.retryTopic, err.Error())
b.logger.Error(errorMsg)
panic(err.Error())
panic(errorMsg)
}
}
}
Expand Down

0 comments on commit 4e38c53

Please sign in to comment.