From b415f9b0b80f5b227ede544ea680a2364509d534 Mon Sep 17 00:00:00 2001 From: David Ansari Date: Wed, 22 Sep 2021 12:25:24 +0200 Subject: [PATCH] Do not pollute info logs 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)." --- internal/scaling/scaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/scaling/scaling.go b/internal/scaling/scaling.go index 2f7bcf335..289d74360 100644 --- a/internal/scaling/scaling.go +++ b/internal/scaling/scaling.go @@ -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 }