Skip to content

Commit

Permalink
fix: Refactor adapter startup to ensure proper log initilization (ked…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Turrado Ferrero authored May 28, 2022
1 parent 26edd4f commit ea8cc19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ To learn more about our roadmap, we recommend reading [this document](ROADMAP.md

- **General:** Use metricName from GetMetricsSpec in ScaledJobs instead of `queueLength` ([#3032](https://github.com/kedacore/keda/issue/3032))

### Fixes

- **General:** Refactor adapter startup to ensure proper log initilization. ([2316](https://github.com/kedacore/keda/issues/2316))

### Deprecations

- TODO ([#XXX](https://github.com/kedacore/keda/issue/XXX))
Expand Down
4 changes: 2 additions & 2 deletions adapter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ func main() {
defer klog.Flush()
klog.InitFlags(nil)

printVersion()

cmd := &Adapter{}
cmd.OpenAPIConfig = genericapiserver.DefaultOpenAPIConfig(generatedopenapi.GetOpenAPIDefinitions, openapinamer.NewDefinitionNamer(scheme.Scheme))
cmd.OpenAPIConfig.Info.Title = "keda-adapter"
Expand All @@ -189,6 +187,8 @@ func main() {
return
}

printVersion()

ctrl.SetLogger(logger)

// default to 3 seconds if they don't pass the env var
Expand Down

0 comments on commit ea8cc19

Please sign in to comment.