Merge pull request #74885 from cwdsuzhou/fix_log_style

Change log: avoid to print raw json response too frequently
This commit is contained in:
Kubernetes Prow Robot 2019-03-19 21:26:36 -07:00 committed by GitHub
commit fcf21a2168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ func (h *HeapsterMetricsClient) GetResourceMetric(resource v1.ResourceName, name
return nil, time.Time{}, fmt.Errorf("failed to get pod resource metrics: %v", err)
}
klog.V(4).Infof("Heapster metrics result: %s", string(resultRaw))
klog.V(8).Infof("Heapster metrics result: %s", string(resultRaw))
metrics := metricsapi.PodMetricsList{}
err = json.Unmarshal(resultRaw, &metrics)