From f514f20524710e0d3532ee31715e6d565c9b058c Mon Sep 17 00:00:00 2001 From: Katrina Rogan Date: Tue, 7 Jan 2020 16:27:16 -0800 Subject: [PATCH] Only output object kind in logs (#53) --- flyteadmin/pkg/clusterresource/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flyteadmin/pkg/clusterresource/controller.go b/flyteadmin/pkg/clusterresource/controller.go index 35a8e94a7d..ca5d799024 100644 --- a/flyteadmin/pkg/clusterresource/controller.go +++ b/flyteadmin/pkg/clusterresource/controller.go @@ -280,8 +280,8 @@ func (c *controller) syncNamespace(ctx context.Context, namespace NamespaceName, } for _, target := range c.executionCluster.GetAllValidTargets() { k8sObjCopy := k8sObj.DeepCopyObject() - logger.Debugf(ctx, "Attempting to create resource [%+v](%+v) in cluster [%v] for namespace [%s]", - k8sObj.GetObjectKind().GroupVersionKind().Kind, k8sObj, target.ID, namespace) + logger.Debugf(ctx, "Attempting to create resource [%+v] in cluster [%v] for namespace [%s]", + k8sObj.GetObjectKind().GroupVersionKind().Kind, target.ID, namespace) err = target.Client.Create(ctx, k8sObjCopy) if err != nil { if k8serrors.IsAlreadyExists(err) {