Merge pull request #109044 from liggitt/encoder-log

Raise verbosity of EncoderWithAllocator log
This commit is contained in:
Kubernetes Prow Robot 2022-03-26 16:45:20 -07:00 committed by GitHub
commit 98eff19280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ func (c *codec) doEncode(obj runtime.Object, w io.Writer, memAlloc runtime.Memor
return encoder.EncodeWithAllocator(obj, w, memAlloc)
}
} else {
klog.V(4).Infof("a memory allocator was provided but the encoder %s doesn't implement the runtime.EncoderWithAllocator, using regular encoder.Encode method", c.encoder.Identifier())
klog.V(6).Infof("a memory allocator was provided but the encoder %s doesn't implement the runtime.EncoderWithAllocator, using regular encoder.Encode method", c.encoder.Identifier())
}
}
switch obj := obj.(type) {