diff --git a/pkg/webhook/core.oam.dev/v1alpha2/componentdefinition/mutating_handler.go b/pkg/webhook/core.oam.dev/v1alpha2/componentdefinition/mutating_handler.go index c6d003da6..90d9a8aa3 100644 --- a/pkg/webhook/core.oam.dev/v1alpha2/componentdefinition/mutating_handler.go +++ b/pkg/webhook/core.oam.dev/v1alpha2/componentdefinition/mutating_handler.go @@ -60,7 +60,7 @@ func (h *MutatingHandler) Handle(ctx context.Context, req admission.Request) adm } // mutate the object if err := h.Mutate(obj); err != nil { - klog.Error(err, "failed to mutate the componentDefinition", "name", obj.Name) + klog.ErrorS(err, "failed to mutate the componentDefinition", "name", obj.Name) return admission.Errored(http.StatusBadRequest, err) }