Skip to content

Commit

Permalink
Merge pull request #6162 from pohly/log-init-fix
Browse files Browse the repository at this point in the history
fix log initialization
  • Loading branch information
k8s-ci-robot authored Sep 29, 2023
2 parents 8166f5e + b9c0d91 commit e461782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cluster-autoscaler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e461782

Please sign in to comment.