Skip to content

Commit

Permalink
[target-allocator] Exit on invalid config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Świątek committed May 25, 2023
1 parent 0a92a11 commit 707a986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/otel-allocator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func main() {

if validationErr := config.ValidateConfig(&cfg, &cliConf); validationErr != nil {
setupLog.Error(validationErr, "Invalid configuration")
os.Exit(1)
}

cliConf.RootLogger.Info("Starting the Target Allocator")
Expand Down

0 comments on commit 707a986

Please sign in to comment.