From 35b9c507391c4d52711c3db4e6ef0af831f514e3 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Fri, 25 Feb 2022 17:37:12 -0500 Subject: [PATCH] Fix logging statement with missing parameter kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go Line 225 has a logging statement with missing parameter, causing: I0225 16:19:15.424936 1416311 versioning.go:225] a memory allocator was provided but the encoder %!T(MISSING) doesn't implement the runtime.EncoderWithAllocator, using regular encoder.Encode method Signed-off-by: Carlos Eduardo Arango Gutierrez Co-authored-by: Madhav Jivrajani <12381034+MadhavJivrajani@users.noreply.github.com> --- .../pkg/runtime/serializer/versioning/versioning.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go b/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go index 7b60b128b09..c49cae8d1e4 100644 --- a/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go +++ b/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go @@ -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 %T doesn't implement the runtime.EncoderWithAllocator, using regular encoder.Encode method") + 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()) } } switch obj := obj.(type) {