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:
ben-toogood 2020-07-13 15:08:53 +01:00 committed by GitHub
parent 2e04fcd718
commit 8fe4f1f2c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -911,7 +911,9 @@ func (c *cmd) Before(ctx *cli.Context) error {
)) ))
if err := (*c.opts.Config).Init(opt); err != nil { 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)
}
} }
} }