better logging around negotiations

This commit is contained in:
David Zhao
2021-02-02 01:16:13 -08:00
parent 70574deaf7
commit a4266478c5
5 changed files with 78 additions and 2 deletions
+3
View File
@@ -109,6 +109,9 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
// don't subscribe to the same track multiple times
if existingDt != nil {
logger.Warnw("participant already subscribed to track",
"participant", participant.Identity(),
"track", existingDt.ID())
return nil
}