Skip to content

Commit

Permalink
chore: add a log line for consume offset (#15098)
Browse files Browse the repository at this point in the history
  • Loading branch information
grobinson-grafana authored Nov 25, 2024
1 parent 2113526 commit ed73a66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kafka/partition/reader_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (s *ReaderService) starting(ctx context.Context) error {
// Read from the next offset.
consumeOffset = lastCommittedOffset + 1
}
level.Debug(s.logger).Log("msg", "consuming from offset", "offset", consumeOffset)
s.reader.SetOffsetForConsumption(consumeOffset)

if targetLag, maxLag := s.cfg.TargetConsumerLagAtStartup, s.cfg.MaxConsumerLagAtStartup; targetLag > 0 && maxLag > 0 {
Expand Down

0 comments on commit ed73a66

Please sign in to comment.