From ab40058ad70401ccb8029a255877ac49767698ee Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 4 Mar 2023 01:02:49 +0000 Subject: [PATCH] Add logging around config load error to debug #69 (#72) Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com> Reviewed-on: https://git.mills.io/prologic/tube/pulls/72 --- cmd/tube/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tube/main.go b/cmd/tube/main.go index cc3bfd2..c1c97f2 100644 --- a/cmd/tube/main.go +++ b/cmd/tube/main.go @@ -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)