From 6542d8992a5c7775d35d90f0dcb7d659d0cb91a1 Mon Sep 17 00:00:00 2001 From: katarzyna-z Date: Mon, 6 Mar 2017 09:43:49 +0100 Subject: [PATCH] Fixes #1438, set standard logger as a logger for grpc --- snapteld.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snapteld.go b/snapteld.go index f1f152a7c..e115945a3 100644 --- a/snapteld.go +++ b/snapteld.go @@ -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 ( @@ -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, ")")