Skip to content

Commit bbfc3e1

Browse files
authored
Add a couple of debug log messages. (#21)
1 parent 7857f66 commit bbfc3e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/reconciler/reconciler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,14 @@ func WithValueMapper(m values.Mapper) Option {
489489
// - Irreconcilable - an error occurred during reconciliation
490490
func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error) {
491491
log := r.log.WithValues(strings.ToLower(r.gvk.Kind), req.NamespacedName)
492+
debugLog := log.V(1)
493+
debugLog.Info("reconciling...")
492494

493495
obj := &unstructured.Unstructured{}
494496
obj.SetGroupVersionKind(*r.gvk)
495497
err = r.client.Get(ctx, req.NamespacedName, obj)
496498
if apierrors.IsNotFound(err) {
499+
debugLog.Info("resource not found, nothing to do")
497500
return ctrl.Result{}, nil
498501
}
499502
if err != nil {

0 commit comments

Comments
 (0)