only warns about missing config if its not there

This commit is contained in:
Marvin Preuss 2021-08-20 13:22:45 +02:00
parent 853c7734e6
commit 4aadfe3def

View File

@ -115,7 +115,7 @@ func initConfig(fatal bool) {
// Parse config file.
if cfgFile == "" && fatal {
logger.Fatal().Msg("missing config file")
} else {
} else if cfgFile == "" {
logger.Warn().Msg("missing config file")
}