Skip to content

Commit

Permalink
Do not pollute info logs
Browse files Browse the repository at this point in the history
Before this commit huge "Found exising PVCs" logs
were output after every reconcilication even though PVCs didn't get
resized.

"By default logr's V(0) is zap's InfoLevel and V(1) is zap's DebugLevel (which is numerically -1)."
  • Loading branch information
ansd committed Sep 22, 2021
1 parent ada552c commit b415f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scaling/scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (p PersistenceScaler) getClusterPVCs(ctx context.Context, rmq rabbitmqv1bet
}
}
if len(pvcs) > 0 {
logger.Info("Found existing PVCs", "pvcList", pvcs)
logger.V(1).Info("Found existing PVCs", "pvcList", pvcs)
}
return pvcs, nil
}
Expand Down

0 comments on commit b415f9b

Please sign in to comment.