Skip to content

Commit 7ad280c

Browse files
committed
Fix logging
1 parent f71c505 commit 7ad280c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/operands/known_types/prometheus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ func getCurrentServiceMonitorState(ctx context.Context, runtimeClient client.Cli
146146
if err != nil {
147147
// If field indexer is not available, fall back to listing all ServiceMonitor resources
148148
// and filter by owner reference manually
149-
log.FromContext(ctx).Info("Failed to list ServiceMonitor. error: %v", err)
149+
log.FromContext(ctx).Info("Failed to list ServiceMonitor", "error", err)
150150
err = runtimeClient.List(ctx, serviceMonitorList)
151151
if err != nil {
152-
log.FromContext(ctx).Error(err, "Failed to manually list ServiceMonitor resource. error: %v", err)
152+
log.FromContext(ctx).Error(err, "Failed to manually list ServiceMonitor resource", "error", err)
153153
return nil, err
154154
}
155155

0 commit comments

Comments
 (0)