Skip to content

Commit

Permalink
Update pkg/config/utils.go
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
  • Loading branch information
Cerebrovinny and osterman authored Jan 20, 2025
1 parent 50a1250 commit 3560608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func processEnvVars(atmosConfig *schema.AtmosConfiguration) error {
u.LogTrace(*atmosConfig, fmt.Sprintf("Found ENV var ATMOS_LOGS_LEVEL=%s", logsLevel))
// Validate the log level before setting it
if _, err := logger.ParseLogLevel(logsLevel); err != nil {
return fmt.Errorf("Invalid log level '%s' set in the ATMOS_LOGS_LEVEL environment variable. Valid options are: [Trace Debug Info Warning Off]", logsLevel)
return fmt.Errorf("Invalid log level '%s' set in the ATMOS_LOGS_LEVEL environment variable. Valid options are: [Trace, Debug, Info, Warning, Off]", logsLevel)
}
// Only set the log level if validation passes
atmosConfig.Logs.Level = logsLevel
Expand Down

0 comments on commit 3560608

Please sign in to comment.