Skip to content

Commit 6b1b358

Browse files
committed
Add policy error logs
Signed-off-by: Dale Haiducek <[email protected]>
1 parent 5d52916 commit 6b1b358

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controllers/propagator/policy_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func (r *PolicyReconciler) Reconcile(ctx context.Context, request ctrl.Request)
136136
},
137137
})
138138
if err != nil {
139+
log.Error(err, "Failure during replicated policy cleanup")
140+
139141
return reconcile.Result{}, err
140142
}
141143

@@ -161,6 +163,8 @@ func (r *PolicyReconciler) Reconcile(ctx context.Context, request ctrl.Request)
161163
propagationFailureMetric.WithLabelValues(instance.GetName(), instance.GetNamespace()).Inc()
162164
}
163165

166+
log.Error(err, "Failure during root policy handling")
167+
164168
return reconcile.Result{}, err
165169
}
166170

0 commit comments

Comments
 (0)