Skip to content

Commit

Permalink
Fix reconciler log format message (#25)
Browse files Browse the repository at this point in the history
Fix log format string interpolation
  • Loading branch information
mtesseract authored and ludydoo committed Jun 27, 2023
1 parent 64a007b commit cf795db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.
obj.SetGroupVersionKind(*r.gvk)
err = r.client.Get(ctx, req.NamespacedName, obj)
if apierrors.IsNotFound(err) {
log.V(1).Info("Resource %s/%s not found, nothing to do", req.NamespacedName.Namespace, req.NamespacedName.Name)
log.V(1).Info(fmt.Sprintf("Resource %s/%s not found, nothing to do", req.NamespacedName.Namespace, req.NamespacedName.Name))
return ctrl.Result{}, nil
}
if err != nil {
Expand Down

0 comments on commit cf795db

Please sign in to comment.