Skip to content

Commit

Permalink
fix: Use keys/values structured log interface
Browse files Browse the repository at this point in the history
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="]"
  • Loading branch information
dlipovetsky committed Jan 13, 2024
1 parent 39f8c4b commit bbbd09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/runtime/topologymutation/walker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbbd09f

Please sign in to comment.