From e2d4fa3393ba60e97905ac522a01146af65922b4 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Wed, 24 Aug 2022 12:46:35 +0300 Subject: [PATCH] Advanced debug on app start --- cmd/app/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/app/app.go b/cmd/app/app.go index c83e5981..b8a78987 100644 --- a/cmd/app/app.go +++ b/cmd/app/app.go @@ -52,7 +52,9 @@ func Init() { modules = cfg.Mod - log.Info().Msgf("go2rtc %s/%s", runtime.GOOS, runtime.GOARCH) + path, _ := os.Getwd() + log.Debug().Str("os", runtime.GOOS).Str("arch", runtime.GOARCH). + Str("cwd", path).Int("conf_size", len(data)).Msgf("[app]") } func LoadConfig(v interface{}) {