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.
pull/564/head
Clayton Coleman 2019-02-03 18:57:13 -05:00
parent 0c2613c71a
commit 1e40f93d34
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 0 additions and 2 deletions

View File

@ -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)
}
}