Skip to content

Commit

Permalink
Changed log level for consuming errors from warn to error (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokatyy authored Apr 21, 2024
1 parent 22a9585 commit 57ae36e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dataplane/streamconsumergroup/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (c *claim) start() error {
c.member.streamConsumerGroup.config.Claim.RecordBatchFetch.Interval)

if err != nil {
c.logger.WarnWith("Failed to fetch record batches", "err", errors.GetErrorStackString(err, 10))
c.logger.ErrorWith("Failed to fetch record batches", "err", errors.GetErrorStackString(err, 10))
}
}()

Expand All @@ -79,11 +79,11 @@ func (c *claim) start() error {
// tell the consumer group handler to consume the claim
c.logger.DebugWith("Calling ConsumeClaim on handler")
if err := c.member.handler.ConsumeClaim(c.member.session, c); err != nil {
c.logger.WarnWith("ConsumeClaim returned with error", "err", errors.GetErrorStackString(err, 10))
c.logger.ErrorWith("ConsumeClaim returned with error", "err", errors.GetErrorStackString(err, 10))
}

if err := c.stop(); err != nil {
c.logger.WarnWith("Failed to stop claim after consumption", "err", errors.GetErrorStackString(err, 10))
c.logger.ErrorWith("Failed to stop claim after consumption", "err", errors.GetErrorStackString(err, 10))
}
}()

Expand Down

0 comments on commit 57ae36e

Please sign in to comment.