Skip to content

Commit

Permalink
Log sarama information
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Apr 14, 2019
1 parent f517af5 commit d384893
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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,6 +38,7 @@ func NewClient(config *Config) (*Client, error) {
}

c, err := sarama.NewClient(bootstrapServers, kc)
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 d384893

Please sign in to comment.