more room logging

This commit is contained in:
Mathew Kamkar
2021-11-02 14:05:52 -07:00
parent 05c4df4e23
commit 45aeafd3af

View File

@@ -365,7 +365,11 @@ func (r *LocalRoomManager) rtcSessionWorker(room *rtc.Room, participant types.Pa
case *livekit.SignalRequest_Offer:
_, err := participant.HandleOffer(rtc.FromProtoSessionDescription(msg.Offer))
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
}
case *livekit.SignalRequest_AddTrack:
@@ -440,6 +444,7 @@ func (r *LocalRoomManager) rtcSessionWorker(room *rtc.Room, participant types.Pa
pubTrack := publisher.GetPublishedTrack(sid)
if pubTrack == nil {
logger.Warnw("unable to find PublishedTrack", nil,
"room", room.Room.Name,
"participant", publisher.Identity(),
"pID", publisher.ID(),
"track", sid)