Log config file paths after the --config one is added

This commit is contained in:
Sasha Koshka 2025-05-21 15:24:23 -04:00
parent 735d314a19
commit 3d25441e7a

View File

@ -129,15 +129,15 @@ func (this *environment) phase30ConfigurationParsing() bool {
log.Println("!!! (30) could not determine location of file(s):", err) log.Println("!!! (30) could not determine location of file(s):", err)
return true return true
} }
if this.flags.configFile != "" {
paths = append(paths, this.flags.configFile)
}
if this.Verb() { if this.Verb() {
log.Println("(i) (30) have configuration files:") log.Println("(i) (30) have configuration files:")
for _, paths := range paths { for _, paths := range paths {
log.Println("(i) (30) -", paths) log.Println("(i) (30) -", paths)
} }
} }
if this.flags.configFile != "" {
paths = append(paths, this.flags.configFile)
}
// parse every config and merge them all // parse every config and merge them all
configs := make([]iniConfig, 0, len(paths)) configs := make([]iniConfig, 0, len(paths))
for _, path := range paths { for _, path := range paths {