Skip to content

Commit

Permalink
chore: setupLogger should be called only once
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Nenciarini <[email protected]>
  • Loading branch information
mnencia committed Oct 8, 2024
1 parent ae2ee24 commit 725b4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/finalizers_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

// deleteDatabaseFinalizers deletes Database object finalizers when the cluster they were in has been deleted
func (r *ClusterReconciler) deleteDatabaseFinalizers(ctx context.Context, namespacedName types.NamespacedName) error {
contextLogger, ctx := log.SetupLogger(ctx)
contextLogger := log.FromContext(ctx)

databases := apiv1.DatabaseList{}
if err := r.List(ctx,
Expand Down

0 comments on commit 725b4bd

Please sign in to comment.