Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Feb 5, 2025
1 parent 27a846f commit a26072c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/utils/statsutils/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ func (m *ConfigStatusMetrics) SetResourceInvalid(ctx context.Context, resource r

// ClearMetrics removes all metrics from the ConfigStatusMetrics
func (m *ConfigStatusMetrics) ClearMetrics(ctx context.Context) {
log := contextutils.LoggerFrom(ctx)

someViewsUnregistered := false

// Iterate through the resource metrics and unregister them
Expand All @@ -198,7 +196,7 @@ func (m *ConfigStatusMetrics) ClearMetrics(ctx context.Context) {
var err error
m.metrics, err = prepareMetrics(m.opts)
if err != nil {
log.Errorf("Error clearing resource metrics: %s", err.Error())
contextutils.LoggerFrom(ctx).Errorf("Error clearing resource metrics: %s", err.Error())
}
}

Expand Down

0 comments on commit a26072c

Please sign in to comment.