Skip to content

Commit

Permalink
create logging defaults (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalhoun authored Feb 11, 2025
1 parent 145bfe1 commit f10f64c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ func InitCliConfig(configAndStacksInfo schema.ConfigAndStacksInfo, processStacks
v.SetDefault("components.terraform.append_user_agent", fmt.Sprintf("Atmos/%s (Cloud Posse; +https://atmos.tools)", version.Version))
v.SetDefault("settings.inject_github_token", true)

v.SetDefault("logs.file", "/dev/stderr")
v.SetDefault("logs.level", "Info")

// Process config in system folder
configFilePath1 := ""

Expand Down Expand Up @@ -382,6 +385,7 @@ func processConfigFile(
if !fileExists {
return false, nil
}

reader, err := os.Open(configPath)
if err != nil {
return false, err
Expand Down

0 comments on commit f10f64c

Please sign in to comment.