remove duplicate logs

Kubernetes-commit: 60991daf1ca6ccd24ae14e6643b8374d55bc75bb
This commit is contained in:
caodonghui 2021-03-02 18:20:12 +08:00 committed by Kubernetes Publisher
parent d12347c88d
commit a93288022b
1 changed files with 0 additions and 1 deletions

View File

@ -258,7 +258,6 @@ func checkPodAge(pod *v1.Pod) error {
age := time.Since(pod.CreationTimestamp.Time) age := time.Since(pod.CreationTimestamp.Time)
if age > metricsCreationDelay { if age > metricsCreationDelay {
message := fmt.Sprintf("Metrics not available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String()) message := fmt.Sprintf("Metrics not available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String())
klog.Warningf(message)
return errors.New(message) return errors.New(message)
} else { } else {
klog.V(2).Infof("Metrics not yet available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String()) klog.V(2).Infof("Metrics not yet available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String())