turn down log levels in plugin server to DEBUG (#1325)

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2019-03-28 13:44:26 -06:00
committed by KubeKween
parent 9b635c0e14
commit be42ea782d

View File

@@ -160,12 +160,12 @@ func getNames(command string, kind PluginKind, plugin Interface) []PluginIdentif
func (s *server) Serve() {
if s.flagSet != nil && !s.flagSet.Parsed() {
s.log.Infof("Parsing flags")
s.log.Debugf("Parsing flags")
s.flagSet.Parse(os.Args[1:])
}
s.log.Level = s.logLevelFlag.Parse()
s.log.Infof("Setting log level to %s", strings.ToUpper(s.log.Level.String()))
s.log.Debugf("Setting log level to %s", strings.ToUpper(s.log.Level.String()))
command := os.Args[0]