Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #1438, set standard logger as a logger for grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
katarzyna-z committed Mar 6, 2017
1 parent 96d9c6a commit 6542d89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snapteld.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import (
"github.com/intelsdi-x/snap/mgmt/tribe/agreement"
"github.com/intelsdi-x/snap/pkg/cfgfile"
"github.com/intelsdi-x/snap/scheduler"
"google.golang.org/grpc/grpclog"
)

var (
Expand Down Expand Up @@ -287,6 +288,10 @@ func action(ctx *cli.Context) error {

// Switch log level to user defined
log.SetLevel(getLevel(cfg.LogLevel))

//Set standard logger as logger for grpc
grpclog.SetLogger(log.StandardLogger())

log.Info("setting log level to: ", l[cfg.LogLevel])

log.Info("Starting snapteld (version: ", gitversion, ")")
Expand Down

0 comments on commit 6542d89

Please sign in to comment.