Skip to content

Commit 5460e19

Browse files
committed
Update loggers
1 parent e4f565f commit 5460e19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/hass/hass.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func Init() {
2626

2727
app.LoadConfig(&conf)
2828

29-
log = app.GetLogger("api")
29+
log = app.GetLogger("hass")
3030

3131
// support https://www.home-assistant.io/integrations/rtsp_to_webrtc/
3232
api.HandleFunc("/static", func(w http.ResponseWriter, r *http.Request) {
@@ -78,7 +78,7 @@ func Init() {
7878
continue
7979
}
8080

81-
log.Info().Str("src", "hass:" + entrie.Title).Msg("[hass] new stream")
81+
log.Info().Str("url", "hass:" + entrie.Title).Msg("[hass] load stream")
8282
//streams.Get("hass:" + entrie.Title)
8383
}
8484
}

cmd/webrtc/webrtc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func offerHandler(ctx *api.Context, msg *streamer.Message) {
6969
return
7070
}
7171

72-
log.Debug().Str("src", src).Msg("[webrtc] new consumer")
72+
log.Debug().Str("url", src).Msg("[webrtc] new consumer")
7373

7474
var err error
7575

0 commit comments

Comments
 (0)