Add logging around config load error to debug #69 (#72)
continuous-integration/drone/push Build is passing Details

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: #72
master
James Mills 3 weeks ago
parent bf1e25949d
commit ab40058ad7

@ -49,7 +49,7 @@ func main() {
if flag.Lookup("config").Changed {
log.Fatal(err)
}
log.Infof("Reading %s failed. Starting with builtin defaults.", config)
log.WithError(err).Infof("Reading %s failed. Starting with builtin defaults.", config)
}
// I'd like to add something like this here: log.Debug("Active config: %s", cfg.toJson())
a, err := app.NewApp(cfg)

Loading…
Cancel
Save