From dd25a6bda9552d58b255788aaa9ee9a71e3666f1 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Fri, 13 Nov 2015 13:06:36 +0100 Subject: [PATCH] Use Logf instead of Printf in e2e --- test/e2e/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index 201df262621..0b7bcc3a0b1 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -878,13 +878,13 @@ func serviceResponding(c *client.Client, ns, name string) error { func loadConfig() (*client.Config, error) { switch { case testContext.KubeConfig != "": - fmt.Printf(">>> testContext.KubeConfig: %s\n", testContext.KubeConfig) + Logf(">>> testContext.KubeConfig: %s\n", testContext.KubeConfig) c, err := clientcmd.LoadFromFile(testContext.KubeConfig) if err != nil { return nil, fmt.Errorf("error loading KubeConfig: %v", err.Error()) } if testContext.KubeContext != "" { - fmt.Printf(">>> testContext.KubeContext: %s\n", testContext.KubeContext) + Logf(">>> testContext.KubeContext: %s\n", testContext.KubeContext) c.CurrentContext = testContext.KubeContext } return clientcmd.NewDefaultClientConfig(*c, &clientcmd.ConfigOverrides{ClusterInfo: clientcmdapi.Cluster{Server: testContext.Host}}).ClientConfig()