diff options
| author | James Mills <james@mills.io> | 2023-03-04 01:02:49 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2023-03-04 01:02:49 +0000 |
| commit | ab40058ad70401ccb8029a255877ac49767698ee (patch) | |
| tree | 955fa3e5744095b68cde5b0b0351907cc1e60447 | |
| parent | bf1e25949d45958aee1e76b7977affd5b1e92f7b (diff) | |
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
| -rw-r--r-- | cmd/tube/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
