From 4160d70ecf4012ef59a3f56e934b04c3f93c7f7b Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Fri, 21 Apr 2017 12:10:46 +0200 Subject: [PATCH] Remove spammy logs in tests --- test/e2e/framework/util.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index e21c7e8434f..9f1a3408279 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -570,7 +570,6 @@ func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedN desiredPods = len(podList.Items) for _, pod := range podList.Items { if len(ignoreLabels) != 0 && ignoreSelector.Matches(labels.Set(pod.Labels)) { - Logf("%v in state %v, ignoring", pod.Name, pod.Status.Phase) continue } res, err := testutils.PodRunningReady(&pod) @@ -627,7 +626,7 @@ func kubectlLogPod(c clientset.Interface, pod v1.Pod, containerNameSubstr string logFunc("Failed to get logs of pod %v, container %v, err: %v", pod.Name, container.Name, err) } } - By(fmt.Sprintf("Logs of %v/%v:%v on node %v", pod.Namespace, pod.Name, container.Name, pod.Spec.NodeName)) + logFunc("Logs of %v/%v:%v on node %v", pod.Namespace, pod.Name, container.Name, pod.Spec.NodeName) logFunc("%s : STARTLOG\n%s\nENDLOG for container %v:%v:%v", containerNameSubstr, logs, pod.Namespace, pod.Name, container.Name) } } @@ -1865,7 +1864,7 @@ func ServiceResponding(c clientset.Interface, ns, name string) error { } func RestclientConfig(kubeContext string) (*clientcmdapi.Config, error) { - Logf(">>> kubeConfig: %s\n", TestContext.KubeConfig) + Logf(">>> kubeConfig: %s", TestContext.KubeConfig) if TestContext.KubeConfig == "" { return nil, fmt.Errorf("KubeConfig must be specified to load client config") } @@ -1874,7 +1873,7 @@ func RestclientConfig(kubeContext string) (*clientcmdapi.Config, error) { return nil, fmt.Errorf("error loading KubeConfig: %v", err.Error()) } if kubeContext != "" { - Logf(">>> kubeContext: %s\n", kubeContext) + Logf(">>> kubeContext: %s", kubeContext) c.CurrentContext = kubeContext } return c, nil