From 8a9a6e7868658a020feb1dca2d8dcf1cc23c5c37 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 4 Jul 2023 10:17:10 +0300 Subject: [PATCH] use openstack package level logger GetLog --- controllers/core/openstackcontrolplane_controller.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/controllers/core/openstackcontrolplane_controller.go b/controllers/core/openstackcontrolplane_controller.go index f9e02b6a8..5a214a6cd 100644 --- a/controllers/core/openstackcontrolplane_controller.go +++ b/controllers/core/openstackcontrolplane_controller.go @@ -42,14 +42,12 @@ import ( telemetryv1 "github.com/openstack-k8s-operators/telemetry-operator/api/v1beta1" rabbitmqv1 "github.com/rabbitmq/cluster-operator/api/v1beta1" + "github.com/go-logr/logr" + k8s_errors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/log" - - "github.com/go-logr/logr" - k8s_errors "k8s.io/apimachinery/pkg/api/errors" ) // OpenStackControlPlaneReconciler reconciles a OpenStackControlPlane object @@ -93,7 +91,7 @@ type OpenStackControlPlaneReconciler struct { func (r *OpenStackControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, _err error) { - l := GetLog(ctx) + l := openstack.GetLog(ctx) // Fetch the OpenStackControlPlane instance instance := &corev1beta1.OpenStackControlPlane{} err := r.Client.Get(ctx, req.NamespacedName, instance)