Add producer url to logs

This commit is contained in:
Alexey Khit
2023-01-08 20:00:48 +03:00
parent a9d1e64f88
commit c9b0806c84
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func (s *Stream) AddConsumer(cons streamer.Consumer) (err error) {
// Step 4. Get producer track
prodTrack := prod.GetTrack(prodMedia, prodCodec)
if prodTrack == nil {
log.Warn().Msg("[stream] can't get track")
log.Warn().Str("url", prod.url).Msg("[stream] can't get track")
continue
}