more room logging

This commit is contained in:
Mathew Kamkar
2021-11-02 14:05:52 -07:00
parent 05c4df4e23
commit 45aeafd3af
+6 -1
View File
@@ -365,7 +365,11 @@ func (r *LocalRoomManager) rtcSessionWorker(room *rtc.Room, participant types.Pa
case *livekit.SignalRequest_Offer: case *livekit.SignalRequest_Offer:
_, err := participant.HandleOffer(rtc.FromProtoSessionDescription(msg.Offer)) _, err := participant.HandleOffer(rtc.FromProtoSessionDescription(msg.Offer))
if err != nil { if err != nil {
logger.Errorw("could not handle offer", err, "participant", participant.Identity(), "pID", participant.ID()) logger.Errorw("could not handle offer", err,
"room", room.Room.Name,
"participant", participant.Identity(),
"pID", participant.ID(),
)
return return
} }
case *livekit.SignalRequest_AddTrack: case *livekit.SignalRequest_AddTrack:
@@ -440,6 +444,7 @@ func (r *LocalRoomManager) rtcSessionWorker(room *rtc.Room, participant types.Pa
pubTrack := publisher.GetPublishedTrack(sid) pubTrack := publisher.GetPublishedTrack(sid)
if pubTrack == nil { if pubTrack == nil {
logger.Warnw("unable to find PublishedTrack", nil, logger.Warnw("unable to find PublishedTrack", nil,
"room", room.Room.Name,
"participant", publisher.Identity(), "participant", publisher.Identity(),
"pID", publisher.ID(), "pID", publisher.ID(),
"track", sid) "track", sid)