diff --git a/cluster-autoscaler/main.go b/cluster-autoscaler/main.go index 8405969f5a9b..9e021b8963c3 100644 --- a/cluster-autoscaler/main.go +++ b/cluster-autoscaler/main.go @@ -588,12 +588,11 @@ func main() { featureGate.AddFlag(pflag.CommandLine) kube_flag.InitFlags() + logs.InitLogs() if err := logsapi.ValidateAndApply(loggingConfig, featureGate); err != nil { klog.Fatalf("Failed to validate and apply logging configuration: %v", err) } - logs.InitLogs() - healthCheck := metrics.NewHealthCheck(*maxInactivityTimeFlag, *maxFailingTimeFlag) klog.V(1).Infof("Cluster Autoscaler %s", version.ClusterAutoscalerVersion)