diff --git a/CHANGELOG.md b/CHANGELOG.md index 633fa17886a..6c5653b01b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,8 @@ Here is an overview of all new **experimental** features: ### Fixes - **General**: Validate empty array value of triggers in ScaledObject/ScaledJob creation ([#5520](https://github.com/kedacore/keda/issues/5520)) +- **General**: Log field ScaledJob no longer have conflicting types ([#5592](https://github. + com/kedacore/keda/pull/5592)) ### Deprecations diff --git a/pkg/scaling/scale_handler.go b/pkg/scaling/scale_handler.go index fcc060dc97c..b4d4c7011c3 100644 --- a/pkg/scaling/scale_handler.go +++ b/pkg/scaling/scale_handler.go @@ -816,7 +816,7 @@ func (h *scaleHandler) getScaledJobMetrics(ctx context.Context, scaledJob *kedav isActive := false scalerType := fmt.Sprintf("%T:", scaler) - scalerLogger := log.WithValues("ScaledJob", scaledJob.Name, "Scaler", scalerType) + scalerLogger := log.WithValues("scaledJob.Name", scaledJob.Name, "Scaler", scalerType) metricSpecs := scaler.GetMetricSpecForScaling(ctx) @@ -880,7 +880,7 @@ func (h *scaleHandler) isScaledJobActive(ctx context.Context, scaledJob *kedav1a isActive, queueLength, maxValue, maxFloatValue := scaledjob.IsScaledJobActive(scalersMetrics, scaledJob.Spec.ScalingStrategy.MultipleScalersCalculation, scaledJob.MinReplicaCount(), scaledJob.MaxReplicaCount()) - logger.V(1).WithValues("ScaledJob", scaledJob.Name).Info("Checking if ScaleJob Scalers are active", "isActive", isActive, "maxValue", maxFloatValue, "MultipleScalersCalculation", scaledJob.Spec.ScalingStrategy.MultipleScalersCalculation) + logger.V(1).WithValues("scaledJob.Name", scaledJob.Name).Info("Checking if ScaleJob Scalers are active", "isActive", isActive, "maxValue", maxFloatValue, "MultipleScalersCalculation", scaledJob.Spec.ScalingStrategy.MultipleScalersCalculation) return isActive, queueLength, maxValue }