viper ConfigFileUsed instead of env.

This commit is contained in:
Miroslav Šedivý 2021-03-18 19:50:37 +01:00
parent 27b1ca54c0
commit 79af4409b5

View File

@ -123,7 +123,7 @@ func init() {
if file == "" {
logger.Warn().Msg("preflight complete without config file")
} else {
if _, err := os.Stat(config); os.IsNotExist(err) {
if _, err := os.Stat(file); os.IsNotExist(err) {
logger.Error().Msg("preflight complete with nonexistent config file")
} else {
logger.Info().Msg("preflight complete")