Add go2rtc version info

This commit is contained in:
Alexey Khit
2022-11-11 18:01:30 +03:00
parent d478436758
commit aef84cef6b
+6 -2
View File
@@ -10,6 +10,9 @@ import (
"runtime"
)
var Version = "0.1-rc.2"
var UserAgent = "go2rtc/" + Version
func Init() {
config := flag.String(
"config",
@@ -35,9 +38,10 @@ func Init() {
modules = cfg.Mod
log.Info().Msgf("go2rtc version %s %s/%s", Version, 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]")
log.Debug().Str("cwd", path).Send()
}
func NewLogger(format string, level string) zerolog.Logger {