From bbbd09fc250893dcec408318f5c36c0177cad7a2 Mon Sep 17 00:00:00 2001 From: Daniel Lipovetsky Date: Fri, 12 Jan 2024 16:06:30 -0800 Subject: [PATCH] fix: Use keys/values structured log interface Previously, the log message was malformed, e.g. "Generated patch (uid: %q): %q\n" template="infrastructure.cluster.x-k8s.io/v1beta1/DockerClusterTemplate" holder="cluster.x-k8s.io/v1beta1/Cluster/default/docker-quick-start" cc9b55a6-2ac0-470a-9b0e-444e5a08b5de="]" --- exp/runtime/topologymutation/walker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp/runtime/topologymutation/walker.go b/exp/runtime/topologymutation/walker.go index 1f66d83bff56..fd6357f0d80b 100644 --- a/exp/runtime/topologymutation/walker.go +++ b/exp/runtime/topologymutation/walker.go @@ -168,7 +168,7 @@ func WalkTemplates(ctx context.Context, decoder runtime.Decoder, req *runtimehoo PatchType: options.patchFormat, Patch: patch, }) - requestItemLog.V(5).Info("Generated patch (uid: %q): %q\n", requestItem.UID, string(patch)) + requestItemLog.V(5).Info("Generated patch", "uid", requestItem.UID, "patch", string(patch)) } resp.Status = runtimehooksv1.ResponseStatusSuccess