only warns about missing config if its not there
This commit is contained in:
parent
853c7734e6
commit
4aadfe3def
@ -115,7 +115,7 @@ func initConfig(fatal bool) {
|
|||||||
// Parse config file.
|
// Parse config file.
|
||||||
if cfgFile == "" && fatal {
|
if cfgFile == "" && fatal {
|
||||||
logger.Fatal().Msg("missing config file")
|
logger.Fatal().Msg("missing config file")
|
||||||
} else {
|
} else if cfgFile == "" {
|
||||||
logger.Warn().Msg("missing config file")
|
logger.Warn().Msg("missing config file")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user