Merge pull request #18858 from jayunit100/overlogging-rclient

Minimize log level for request backoffs
This commit is contained in:
Mike Danese 2015-12-22 14:08:06 -08:00
commit da8b85e5c7

View File

@ -24,7 +24,6 @@ import (
"strings" "strings"
"time" "time"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/runtime"
@ -94,12 +93,9 @@ func readExpBackoffConfig() BackoffManager {
backoffBaseInt, errBase := strconv.ParseInt(backoffBase, 10, 64) backoffBaseInt, errBase := strconv.ParseInt(backoffBase, 10, 64)
backoffDurationInt, errDuration := strconv.ParseInt(backoffDuration, 10, 64) backoffDurationInt, errDuration := strconv.ParseInt(backoffDuration, 10, 64)
if errBase != nil || errDuration != nil { if errBase != nil || errDuration != nil {
glog.V(2).Infof("Configuring no exponential backoff.")
return &NoBackoff{} return &NoBackoff{}
} else { } else {
glog.V(2).Infof("Configuring exponential backoff as %v, %v", backoffBaseInt, backoffDurationInt)
return &URLBackoff{ return &URLBackoff{
Backoff: util.NewBackOff( Backoff: util.NewBackOff(
time.Duration(backoffBaseInt)*time.Second, time.Duration(backoffBaseInt)*time.Second,