From 853e177f891f37b68d1f94652ab076f88cf2d23c Mon Sep 17 00:00:00 2001 From: Zbynek Roubalik Date: Mon, 24 Aug 2020 21:18:20 +0200 Subject: [PATCH] don't inspect other scalers if one is active Signed-off-by: Zbynek Roubalik --- pkg/scaling/scale_handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/scaling/scale_handler.go b/pkg/scaling/scale_handler.go index 7127422852d..cccd6267893 100644 --- a/pkg/scaling/scale_handler.go +++ b/pkg/scaling/scale_handler.go @@ -208,7 +208,8 @@ func (h *scaleHandler) checkScaledObjectScalers(ctx context.Context, scalers []s continue } else if isTriggerActive { isActive = true - h.logger.V(1).Info("Scaler for scaledObject is active", "Scaler", scaler) + h.logger.V(1).Info("Scaler for scaledObject is active", "Metrics Name", scaler.GetMetricSpecForScaling()[0].External.Metric.Name) + break } } return isActive