Proper context for down track logger (#416)

It was having two participants (both publisher and subscriber).
Fix it by getting logger from susbcriber and adding track context.
This commit is contained in:
Raja Subramanian
2022-02-08 15:54:45 +05:30
committed by GitHub
parent bce3a9b10a
commit d3ca4a37a8
4 changed files with 75 additions and 2 deletions
+4
View File
@@ -223,6 +223,10 @@ func NewParticipant(params ParticipantParams, perms *livekit.ParticipantPermissi
return p, nil
}
func (p *ParticipantImpl) GetLogger() logger.Logger {
return p.params.Logger
}
func (p *ParticipantImpl) ID() livekit.ParticipantID {
return p.params.SID
}