From ea1eefa7ffed08a8cad7c34d0ea1ab0947989788 Mon Sep 17 00:00:00 2001 From: deads2k Date: Mon, 17 Oct 2016 16:33:41 -0400 Subject: [PATCH] glog non-fatal, usually unimportant error instead of fmt --- pkg/kubectl/cmd/util/factory.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/util/factory.go b/pkg/kubectl/cmd/util/factory.go index 25bf2f18a77..736f87737e1 100644 --- a/pkg/kubectl/cmd/util/factory.go +++ b/pkg/kubectl/cmd/util/factory.go @@ -33,6 +33,7 @@ import ( "time" "github.com/emicklei/go-restful/swagger" + "github.com/golang/glog" "github.com/spf13/cobra" "github.com/spf13/pflag" @@ -337,7 +338,7 @@ func (f *factory) Object() (meta.RESTMapper, runtime.ObjectTyper) { // register third party resources with the api machinery groups. This probably should be done, but // its consistent with old code, so we'll start with it. if err := registerThirdPartyResources(discoveryClient); err != nil { - fmt.Fprintf(os.Stderr, "Unable to register third party resources: %v\n", err) + glog.V(1).Infof("Unable to register third party resources: %v", err) } // ThirdPartyResourceData is special. It's not discoverable, but needed for thirdparty resource listing // TODO eliminate this once we're truly generic.