summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJames Mills <james@mills.io>2023-03-04 01:02:49 +0000
committerJames Mills <james@mills.io>2023-03-04 01:02:49 +0000
commitab40058ad70401ccb8029a255877ac49767698ee (patch)
tree955fa3e5744095b68cde5b0b0351907cc1e60447 /cmd
parentbf1e25949d45958aee1e76b7977affd5b1e92f7b (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
Diffstat (limited to 'cmd')
-rw-r--r--cmd/tube/main.go2
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)