From 1e40f93d34802f8a41cb916446f660e226c832ee Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sun, 3 Feb 2019 18:57:13 -0500 Subject: [PATCH] Remove very old debugging log lines that are no longer needed When we originally added YAML guessing we had a reasonable concern that we might get it wrong and need debugging. In the last 4 years we have not yet had such a case, and v(4) often shows up in operator style logs when it adds nothing. Remove the lines. --- staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go b/staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go index 63d735a804c..a9a3853ac3d 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go @@ -217,11 +217,9 @@ func (d *YAMLOrJSONDecoder) Decode(into interface{}) error { if d.decoder == nil { buffer, origData, isJSON := GuessJSONStream(d.r, d.bufferSize) if isJSON { - klog.V(4).Infof("decoding stream as JSON") d.decoder = json.NewDecoder(buffer) d.rawData = origData } else { - klog.V(4).Infof("decoding stream as YAML") d.decoder = NewYAMLToJSONDecoder(buffer) } }