From be0f941ae32b73227875e897f3b2d1727d946490 Mon Sep 17 00:00:00 2001 From: VOID404 Date: Fri, 22 Nov 2024 08:59:54 +0100 Subject: [PATCH] Fix doubling fields --- internal/controller/runtime/runtime_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/controller/runtime/runtime_controller.go b/internal/controller/runtime/runtime_controller.go index 37ee3496..7c116add 100644 --- a/internal/controller/runtime/runtime_controller.go +++ b/internal/controller/runtime/runtime_controller.go @@ -67,11 +67,11 @@ func (r *RuntimeReconciler) Reconcile(ctx context.Context, request ctrl.Request) shootName = "N/D" } - r.Log = r.Log.WithValues("runtime", runtimeID, "shoot", shootName) - r.Log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace) + log := r.Log.WithValues("runtime", runtimeID, "shoot", shootName) + log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace) stateFSM := fsm.NewFsm( - r.Log.WithName(fmt.Sprintf("reqID %d", requCounter)), + log.Sprintf("reqID %d", requCounter)), r.Cfg, fsm.K8s{ Client: r.Client,