Skip to content

Commit

Permalink
[v2] don't inspect other scalers if one is active (#1036)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
zroubalik authored Aug 25, 2020
1 parent bf25619 commit a768340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scaling/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a768340

Please sign in to comment.