Skip to content

Commit

Permalink
Improve reader error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LasTshaMAN authored Jan 19, 2021
1 parent 2b9123d commit 2b3f682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ func (r *Reader) readLag(ctx context.Context) {
if err != nil {
r.stats.errors.observe(1)
r.withErrorLogger(func(log Logger) {
log.Printf("kafka reader failed to read lag of partition %d of %s", r.config.Partition, r.config.Topic)
log.Printf("kafka reader failed to read lag of partition %d of %s: %s", r.config.Partition, r.config.Topic, err)
})
} else {
r.stats.lag.observe(lag)
Expand Down

0 comments on commit 2b3f682

Please sign in to comment.