Haitham
10/13/2024, 12:00 AMfunc LogError(cliConfig schema.CliConfiguration, err error)
the cliConfig has value cliConfig.Logs.Level
on many cases on call func they pass empty value
that force me to add global value
branch https://github.com/cloudposse/atmos/tree/DEV-340Andriy Knysh (Cloud Posse)
10/13/2024, 12:01 AMAndriy Knysh (Cloud Posse)
10/13/2024, 12:02 AMatmos.yaml is parsed), we don't have cliConfig yet, so in those cases we use just an empty struct
u.LogError(schema.CliConfiguration{}, err)Andriy Knysh (Cloud Posse)
10/13/2024, 12:03 AMatmos.yaml and have cliConfig in all functions, so we use it
u.LogError(cliConfig, err)Andriy Knysh (Cloud Posse)
10/13/2024, 12:03 AMHaitham
10/13/2024, 12:04 AMHaitham
10/13/2024, 12:05 AMHaitham
10/13/2024, 12:12 AMHaitham
10/13/2024, 12:14 AMAndriy Knysh (Cloud Posse)
10/13/2024, 12:17 AMcliConfig as func argument to all functions. In your new code, you can pass cliConfig using any method, including passing as func arg or as struct methodErik Osterman (Cloud Posse)
10/13/2024, 12:21 AMHaitham
10/13/2024, 12:30 AMHaitham
10/13/2024, 12:32 AMHaitham
10/13/2024, 12:35 AMAndriy Knysh (Cloud Posse)
10/13/2024, 1:15 AM