config/cmd: don't fatally error if config can't be loaded (#1825)
* config/cmd: don't fatally error if config cannot be loaded * config/cmd: fix log level typo
This commit is contained in:
parent
2e04fcd718
commit
8fe4f1f2c3
@ -911,7 +911,9 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
||||
))
|
||||
|
||||
if err := (*c.opts.Config).Init(opt); err != nil {
|
||||
logger.Fatalf("Error configuring config: %v", err)
|
||||
if logger.V(logger.DebugLevel, logger.DefaultLogger) {
|
||||
logger.Debugf("Error configuring config: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user