Advanced debug on app start

This commit is contained in:
Alexey Khit
2022-08-24 12:46:35 +03:00
parent 5fea2932c1
commit e2d4fa3393
+3 -1
View File
@@ -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{}) {