Skip to content

Commit

Permalink
Log republish failure (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
SijmenHuizenga authored Nov 12, 2024
1 parent 50d0dbd commit 54b2212
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localparticipant.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ func (p *LocalParticipant) republishTracks() {
}
p.PublishSimulcastTrack(tracks, &opt)
} else if track := pub.TrackLocal(); track != nil {
p.PublishTrack(track, &opt)
_, err := p.PublishTrack(track, &opt)
if err != nil {
p.engine.log.Warnw("could not republish track", err, "track", pub.SID())
}
} else {
p.engine.log.Warnw("could not republish track as no track local found", nil, "track", pub.SID())
}
Expand Down

0 comments on commit 54b2212

Please sign in to comment.