diff --git a/batch_consumer.go b/batch_consumer.go index c56812a..c338b55 100644 --- a/batch_consumer.go +++ b/batch_consumer.go @@ -3,7 +3,6 @@ package kafka import ( "errors" "fmt" - "github.com/gofiber/fiber/v2/log" "time" "github.com/prometheus/client_golang/prometheus" @@ -263,7 +262,7 @@ func (b *batchConsumer) retryBatchWithBackoff(retryableMessages []kcronsumer.Mes if produceErr == nil { return nil } - log.Warnf("Error producing message (attempt %d/%d): %v", attempt, 5, produceErr) + b.logger.Warnf("Error producing message (attempt %d/%d): %v", attempt, 5, produceErr) time.Sleep((50 * time.Millisecond) * time.Duration(1<