From 831557408befc453ed9834b8eae559cbef8f4c2f Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Wed, 14 Jan 2015 20:11:51 -0500 Subject: [PATCH] kubectl is double printing errors cobra/command prints errs that are returned by cmd.Execute(), so printing it twice does not accomplish anything. --- cmd/kubectl/kubectl.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/kubectl/kubectl.go b/cmd/kubectl/kubectl.go index 5098d47454..001d707e57 100644 --- a/cmd/kubectl/kubectl.go +++ b/cmd/kubectl/kubectl.go @@ -20,14 +20,11 @@ import ( "os" "github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd" - - "github.com/golang/glog" ) func main() { cmd := cmd.NewFactory().NewKubectlCommand(os.Stdout) if err := cmd.Execute(); err != nil { - glog.Errorf("error: %v", err) os.Exit(1) } }