Skip to content

Commit

Permalink
[target-allocator] Exit on invalid config (open-telemetry#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm authored Nov 29, 2023
1 parent e5c6a1c commit 4136d22
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 @@ -74,6 +74,7 @@ func main() {

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

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

0 comments on commit 4136d22

Please sign in to comment.