From 29764f26b7823af7da9ff2eaacb12d00d34b16ea Mon Sep 17 00:00:00 2001 From: likakuli <1154584512@qq.com> Date: Fri, 2 Jul 2021 15:40:15 +0800 Subject: [PATCH] Fix misleading logs Signed-off-by: likakuli <1154584512@qq.com> --- pkg/util/detector/detector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/detector/detector.go b/pkg/util/detector/detector.go index 740018917..e072086f9 100644 --- a/pkg/util/detector/detector.go +++ b/pkg/util/detector/detector.go @@ -17,7 +17,7 @@ import ( "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" - errors "k8s.io/apimachinery/pkg/util/errors" + "k8s.io/apimachinery/pkg/util/errors" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/discovery" "k8s.io/client-go/dynamic" @@ -1035,6 +1035,6 @@ func (d *ResourceDetector) CleanupLabels(objRef workv1alpha1.ObjectReference, la klog.Errorf("Failed to update resource %v/%v, err is %v ", workload.GetNamespace(), workload.GetName(), err) return err } - klog.V(2).Infof("Updated resource(kind=%s, %s/%s) on cluster: %s", newWorkload.GetKind(), newWorkload.GetNamespace(), newWorkload.GetName(), newWorkload.GetClusterName()) + klog.V(2).Infof("Updated resource template(kind=%s, %s/%s) successfully", newWorkload.GetKind(), newWorkload.GetNamespace(), newWorkload.GetName()) return nil }