From 5460e194e8acc02bb57e7fdee328a205ec80f3a2 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Tue, 6 Sep 2022 07:08:35 +0300 Subject: [PATCH] Update loggers --- cmd/hass/hass.go | 4 ++-- cmd/webrtc/webrtc.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/hass/hass.go b/cmd/hass/hass.go index 43c99a24..a9b233b0 100644 --- a/cmd/hass/hass.go +++ b/cmd/hass/hass.go @@ -26,7 +26,7 @@ func Init() { app.LoadConfig(&conf) - log = app.GetLogger("api") + log = app.GetLogger("hass") // support https://www.home-assistant.io/integrations/rtsp_to_webrtc/ api.HandleFunc("/static", func(w http.ResponseWriter, r *http.Request) { @@ -78,7 +78,7 @@ func Init() { continue } - log.Info().Str("src", "hass:" + entrie.Title).Msg("[hass] new stream") + log.Info().Str("url", "hass:" + entrie.Title).Msg("[hass] load stream") //streams.Get("hass:" + entrie.Title) } } diff --git a/cmd/webrtc/webrtc.go b/cmd/webrtc/webrtc.go index b0d6ee1b..e939a04b 100644 --- a/cmd/webrtc/webrtc.go +++ b/cmd/webrtc/webrtc.go @@ -69,7 +69,7 @@ func offerHandler(ctx *api.Context, msg *streamer.Message) { return } - log.Debug().Str("src", src).Msg("[webrtc] new consumer") + log.Debug().Str("url", src).Msg("[webrtc] new consumer") var err error