From 24ee14540ad40079611f4223519196cfbfa2677b Mon Sep 17 00:00:00 2001 From: Xiang Date: Sun, 11 Jun 2017 09:59:38 -0700 Subject: [PATCH] scheduler/util: remove bad print format Backoff do not have any context on pod. Remove the previous bad printing format. --- plugin/pkg/scheduler/util/backoff_utils.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/pkg/scheduler/util/backoff_utils.go b/plugin/pkg/scheduler/util/backoff_utils.go index 90566bbfbaf..9226f4cca5b 100644 --- a/plugin/pkg/scheduler/util/backoff_utils.go +++ b/plugin/pkg/scheduler/util/backoff_utils.go @@ -18,11 +18,12 @@ package util import ( "fmt" - "github.com/golang/glog" - ktypes "k8s.io/apimachinery/pkg/types" "sync" "sync/atomic" "time" + + "github.com/golang/glog" + ktypes "k8s.io/apimachinery/pkg/types" ) type clock interface { @@ -74,7 +75,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration { newDuration = maxDuration } entry.backoff = newDuration - glog.V(4).Infof("Backing off %s for pod %+v", duration.String(), entry) + glog.V(4).Infof("Backing off %s", duration.String()) return duration }