Skip to content

Commit

Permalink
Report error when Kafka connection is broken (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak authored Feb 28, 2024
1 parent 817e677 commit a140b7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pipeline/ingest/ingest_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (k *ingestKafka) kafkaListener() {
kafkaMessage, err := k.kafkaReader.ReadMessage(context.Background())
if err != nil {
klog.Errorln(err)
k.metrics.error("Cannot read message")
continue
}
if k.canLogMessages && logrus.IsLevelEnabled(logrus.TraceLevel) {
Expand Down

0 comments on commit a140b7f

Please sign in to comment.