diff --git a/cmd/root.go b/cmd/root.go index 5a29d630..a48ca370 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -118,12 +118,6 @@ func startServer(opts *common.Options) error { logger.SetLevel(logrus.Level(opts.LogLevel)) - common.Log.WithFields(logrus.Fields{ - "gitCommit": common.GitCommit, - "buildDate": common.BuildDate, - "buildUser": common.BuildUser, - }).Infof("Starting gRPC server version %s on %s", common.Version, opts.GRPCBindAddr) - logging.LogToStderr = opts.GRPCLogging // gRPC initialization @@ -277,6 +271,12 @@ func startServer(opts *common.Options) error { } }() + common.Log.WithFields(logrus.Fields{ + "gitCommit": common.GitCommit, + "buildDate": common.BuildDate, + "buildUser": common.BuildUser, + }).Infof("Starting gRPC server version %s on %s", common.Version, opts.GRPCBindAddr) + // Start listening listener, err := net.Listen("tcp", opts.GRPCBindAddr) if err != nil {