viper ConfigFileUsed instead of env.
This commit is contained in:
parent
27b1ca54c0
commit
79af4409b5
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func init() {
|
||||||
if file == "" {
|
if file == "" {
|
||||||
logger.Warn().Msg("preflight complete without config file")
|
logger.Warn().Msg("preflight complete without config file")
|
||||||
} else {
|
} 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")
|
logger.Error().Msg("preflight complete with nonexistent config file")
|
||||||
} else {
|
} else {
|
||||||
logger.Info().Msg("preflight complete")
|
logger.Info().Msg("preflight complete")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue