Skip to content

Commit ea3cb16

Browse files
authored
improve debug log for remote track pub/unpub (#12)
1 parent 58abf26 commit ea3cb16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/context/room_context.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ class RoomContext extends ChangeNotifier with ChatContextMixin {
116116
notifyListeners();
117117
})
118118
..on<TrackPublishedEvent>((event) {
119-
Debug.event('ParticipantContext: TrackPublishedEvent $roomName');
119+
Debug.event(
120+
'RoomContext: TrackPublishedEvent $roomName participant = ${event.participant.identity} track = ${event.publication.sid}');
120121
_buildParticipants();
121122
})
122123
..on<TrackUnpublishedEvent>((event) {
123-
Debug.event('ParticipantContext: TrackUnpublishedEvent $roomName');
124+
Debug.event(
125+
'RoomContext: TrackUnpublishedEvent $roomName participant = ${event.participant.identity} track = ${event.publication.sid}');
124126
_buildParticipants();
125127
})
126128
..on<LocalTrackPublishedEvent>((event) {

0 commit comments

Comments
 (0)