Skip to content

Commit

Permalink
Merge pull request #539 from m00g3n/fix-shoot-name-in-logs
Browse files Browse the repository at this point in the history
Fix logging shoot name
  • Loading branch information
kyma-bot authored Dec 2, 2024
2 parents 53b3536 + a557072 commit 05f8d92
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/controller/runtime/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ func (r *RuntimeReconciler) Reconcile(ctx context.Context, request ctrl.Request)
runtimeID = runtime.Name
}

shootName, ok := runtime.Labels["kyma-project.io/shoot-name"]
if !ok {
shootName = "N/D"
}

log := r.Log.WithValues("runtimeID", runtimeID, "shootName", shootName, "requestID", r.RequestID.Add(1))
log := r.Log.WithValues("runtimeID", runtimeID, "shootName", runtime.Spec.Shoot.Name, "requestID", r.RequestID.Add(1))
log.Info("Reconciling Runtime", "Name", runtime.Name, "Namespace", runtime.Namespace)

stateFSM := fsm.NewFsm(
Expand Down

0 comments on commit 05f8d92

Please sign in to comment.