Better message

This commit is contained in:
NI
2019-08-10 15:01:11 +08:00
parent 4f0d899346
commit fa48b6aa34

View File

@@ -143,6 +143,9 @@ func File(customPath string) Loader {
return loadFile(customPath) return loadFile(customPath)
} }
log.Info("Loading configuration from one of the default " +
"configuration files ...")
fallbackFileSearchList := make([]string, 0, 3) fallbackFileSearchList := make([]string, 0, 3)
// ~/.config/sshwifty.conf.json // ~/.config/sshwifty.conf.json
@@ -176,7 +179,7 @@ func File(customPath string) Loader {
continue continue
} }
log.Info("Loading configuration from: %s", log.Info("Configuration file \"%s\" has been selected",
fallbackFileSearchList[f]) fallbackFileSearchList[f])
return loadFile(fallbackFileSearchList[f]) return loadFile(fallbackFileSearchList[f])