Skip to content

Commit

Permalink
Add sarama logs to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Apr 14, 2019
1 parent 42b96ab commit 6451237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kafka/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"log"
"os"
"time"

"github.com/Shopify/sarama"
Expand Down Expand Up @@ -37,7 +38,7 @@ func NewClient(config *Config) (*Client, error) {
}

c, err := sarama.NewClient(bootstrapServers, kc)
//sarama.Logger = log.New(os.Stdout, "[TRACE] [Sarama]", log.LstdFlags)
sarama.Logger = log.New(os.Stdout, "[TRACE] [Sarama]", log.LstdFlags)
if err != nil {
log.Println("[ERROR] Error connecting to kafka")
return nil, err
Expand Down

0 comments on commit 6451237

Please sign in to comment.