|
|
|
@ -31,7 +31,7 @@ func LoadConfig() (*koanf.Koanf, *kfile.File) {
|
|
|
|
|
configFileProvider := kfile.Provider(CONFIG_FILE_PATH) |
|
|
|
|
_, err := os.Stat(CONFIG_FILE_PATH) |
|
|
|
|
if os.IsNotExist(err) { |
|
|
|
|
//log.Printf("%s does not exist, USING DEFAULTS", ui.CONFIG_FILE_PATH)
|
|
|
|
|
//log.Printf("%s does not exist, USING DEFAULTS", CONFIG_FILE_PATH)
|
|
|
|
|
} else { |
|
|
|
|
if errConfigFile := pfConfig.Load(configFileProvider, toml.Parser()); errConfigFile != nil { |
|
|
|
|
log.Fatalf("Error loading config : %s", err) |
|
|
|
|