Skip to content

Commit

Permalink
feat: enhance message could not read error with consumer group (#80)
Browse files Browse the repository at this point in the history
* feat: enhance message could not read error with consumer group

* chore: fix lint
  • Loading branch information
Abdulsametileri authored Aug 5, 2024
1 parent dac20b7 commit 6066a2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cronsumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func (k *kafkaCronsumer) Listen(ctx context.Context, strategyName string, cancel
for {
m, err := k.kafkaConsumer.ReadMessage(ctx)
if err != nil {
k.cfg.Logger.Warnf("Message from %s could not read, error %s", k.cfg.Consumer.Topic, err.Error())
//nolint:lll
k.cfg.Logger.Warnf("Message from %s could not read with consumer group %s, error %s", k.cfg.Consumer.Topic, k.cfg.Consumer.GroupID, err.Error())
return
}
if m == nil {
Expand Down

0 comments on commit 6066a2b

Please sign in to comment.