From ef410d1a5d60e01ef26725ca46cc55521c55644f Mon Sep 17 00:00:00 2001 From: Adrian Dieter Date: Mon, 2 Dec 2024 18:40:23 +0100 Subject: [PATCH] Remove format from log string --- internal/controller/account_controller.go | 2 +- internal/controller/consumer_controller.go | 2 +- internal/controller/stream_controller.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/controller/account_controller.go b/internal/controller/account_controller.go index 085c2d84..a5686437 100644 --- a/internal/controller/account_controller.go +++ b/internal/controller/account_controller.go @@ -42,7 +42,7 @@ type AccountReconciler struct { // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile func (r *AccountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { log := klog.FromContext(ctx) - log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name) + log.Info("reconcile", "namespace", req.Namespace, "name", req.Name) // TODO(user): your logic here diff --git a/internal/controller/consumer_controller.go b/internal/controller/consumer_controller.go index b91eaed0..6dbe7ba8 100644 --- a/internal/controller/consumer_controller.go +++ b/internal/controller/consumer_controller.go @@ -42,7 +42,7 @@ type ConsumerReconciler struct { // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile func (r *ConsumerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { log := klog.FromContext(ctx) - log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name) + log.Info("reconcile", "namespace", req.Namespace, "name", req.Name) return ctrl.Result{}, nil } diff --git a/internal/controller/stream_controller.go b/internal/controller/stream_controller.go index ea41127d..4469b7f0 100644 --- a/internal/controller/stream_controller.go +++ b/internal/controller/stream_controller.go @@ -42,7 +42,7 @@ type StreamReconciler struct { // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile func (r *StreamReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { log := klog.FromContext(ctx) - log.Info("reconcile %s", "namespace", req.Namespace, "name", req.Name) + log.Info("reconcile", "namespace", req.Namespace, "name", req.Name) // TODO(user): your logic here return ctrl.Result{}, nil