From 212f436b4a617313751f91c62b35fe20bd16f417 Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Wed, 27 Mar 2024 16:59:05 +0530 Subject: [PATCH] Adding logger name cache Signed-off-by: Feny Mehta --- .../toolchainclustercache/toolchaincluster_cache_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/toolchainclustercache/toolchaincluster_cache_controller.go b/controllers/toolchainclustercache/toolchaincluster_cache_controller.go index 0f6a1ae7..9adb8fbb 100644 --- a/controllers/toolchainclustercache/toolchaincluster_cache_controller.go +++ b/controllers/toolchainclustercache/toolchaincluster_cache_controller.go @@ -46,7 +46,7 @@ type Reconciler struct { // The Controller will requeue the Request to be processed again if the returned error is non-nil or // Result.Requeue is true, otherwise upon completion it will remove the work from the queue. func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error) { - reqLogger := log.FromContext(ctx) + reqLogger := log.FromContext(ctx).WithName("cache") reqLogger.Info("Reconciling ToolchainCluster") // Fetch the ToolchainCluster instance