mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
kafka: _MINIO_KAFKA_DEBUG to enable sarama debug messages (#19849)
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -331,6 +332,10 @@ func (target *KafkaTarget) init() error {
|
||||
}
|
||||
|
||||
func (target *KafkaTarget) initKafka() error {
|
||||
if os.Getenv("_MINIO_KAFKA_DEBUG") != "" {
|
||||
sarama.DebugLogger = log.Default()
|
||||
}
|
||||
|
||||
args := target.args
|
||||
|
||||
config := sarama.NewConfig()
|
||||
|
||||
Reference in New Issue
Block a user