mirror of https://github.com/k3s-io/k3s
Merge pull request #73683 from smarterclayton/higher_debug
Remove very old debugging log lines that are no longer neededpull/564/head
commit
1ff28095ec
|
@ -217,11 +217,9 @@ func (d *YAMLOrJSONDecoder) Decode(into interface{}) error {
|
||||||
if d.decoder == nil {
|
if d.decoder == nil {
|
||||||
buffer, origData, isJSON := GuessJSONStream(d.r, d.bufferSize)
|
buffer, origData, isJSON := GuessJSONStream(d.r, d.bufferSize)
|
||||||
if isJSON {
|
if isJSON {
|
||||||
klog.V(4).Infof("decoding stream as JSON")
|
|
||||||
d.decoder = json.NewDecoder(buffer)
|
d.decoder = json.NewDecoder(buffer)
|
||||||
d.rawData = origData
|
d.rawData = origData
|
||||||
} else {
|
} else {
|
||||||
klog.V(4).Infof("decoding stream as YAML")
|
|
||||||
d.decoder = NewYAMLToJSONDecoder(buffer)
|
d.decoder = NewYAMLToJSONDecoder(buffer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue