diff --git a/pkg/util/utils.go b/pkg/util/utils.go index 88b86368d101..df866c1b187f 100644 --- a/pkg/util/utils.go +++ b/pkg/util/utils.go @@ -97,7 +97,9 @@ func Retry(attempts int, callback func() error) (err error) { func RetryAfter(attempts int, callback func() error, d time.Duration) (err error) { m := MultiError{} for i := 0; i < attempts; i++ { - glog.V(1).Infof("retry loop %d", i) + if i > 0 { + glog.V(1).Infof("retry loop %d", i) + } err = callback() if err == nil { return nil