Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
Signed-off-by: Avinash Patnala <[email protected]>
  • Loading branch information
Avinash Patnala committed Oct 21, 2024
1 parent c5ef42e commit 1ce8461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/config/config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func (r *ReconcileConfig) Reconcile(ctx context.Context, request reconcile.Reque
reportMetrics := false
defer func() {
if reportMetrics {
r.metrics.reportConfig(ctx, metrics.ActiveStatus, 0)
if err := r.metrics.reportConfig(ctx, metrics.ActiveStatus, 0); err != nil {
log.Info("Error when reporting config status metric", err)
}
}
}()

Expand Down

0 comments on commit 1ce8461

Please sign in to comment.