Просмотр исходного кода

fix(ParticipantConnectionStatus): minor logging improvements

dev1
paweldomas 9 лет назад
Родитель
Сommit
c3b1cee6c7
1 измененных файлов: 10 добавлений и 7 удалений
  1. 10
    7
      modules/connectivity/ParticipantConnectionStatus.js

+ 10
- 7
modules/connectivity/ParticipantConnectionStatus.js Просмотреть файл

178
             participant._setIsConnectionActive(newStatus);
178
             participant._setIsConnectionActive(newStatus);
179
 
179
 
180
             logger.debug(
180
             logger.debug(
181
-                'Emit endpoint conn status(' + Date.now() + '): ',
182
-                endpointId, newStatus);
181
+                'Emit endpoint conn status(' + Date.now() + ') '
182
+                    + endpointId + ": " + newStatus);
183
 
183
 
184
             // Log the event on CallStats
184
             // Log the event on CallStats
185
             Statistics.sendLog(
185
             Statistics.sendLog(
225
                 && remoteTrack.getType() === MediaType.VIDEO) {
225
                 && remoteTrack.getType() === MediaType.VIDEO) {
226
 
226
 
227
             logger.debug(
227
             logger.debug(
228
-                'Detector on remote track added: ',
229
-                remoteTrack.getParticipantId());
228
+                'Detector on remote track added for: '
229
+                    + remoteTrack.getParticipantId());
230
 
230
 
231
             remoteTrack.on(
231
             remoteTrack.on(
232
                 JitsiTrackEvents.TRACK_MUTE_CHANGED,
232
                 JitsiTrackEvents.TRACK_MUTE_CHANGED,
244
     onRemoteTrackRemoved(remoteTrack) {
244
     onRemoteTrackRemoved(remoteTrack) {
245
         if (!remoteTrack.isLocal()
245
         if (!remoteTrack.isLocal()
246
                 && remoteTrack.getType() === MediaType.VIDEO) {
246
                 && remoteTrack.getType() === MediaType.VIDEO) {
247
+
248
+            const endpointId = remoteTrack.getParticipantId();
249
+
247
             logger.debug(
250
             logger.debug(
248
-                'Detector on remote track removed: ',
249
-                remoteTrack.getParticipantId());
251
+                'Detector on remote track removed: ' + endpointId);
252
+
250
             remoteTrack.off(
253
             remoteTrack.off(
251
                 JitsiTrackEvents.TRACK_MUTE_CHANGED,
254
                 JitsiTrackEvents.TRACK_MUTE_CHANGED,
252
                 this._onSignallingMuteChanged);
255
                 this._onSignallingMuteChanged);
263
     onTrackRtcMuted(track) {
266
     onTrackRtcMuted(track) {
264
         var participantId = track.getParticipantId();
267
         var participantId = track.getParticipantId();
265
         var participant = this.conference.getParticipantById(participantId);
268
         var participant = this.conference.getParticipantById(participantId);
266
-        logger.debug('Detector track RTC muted: ', participantId);
269
+        logger.debug('Detector track RTC muted: ' + participantId);
267
         if (!participant) {
270
         if (!participant) {
268
             logger.error('No participant for id: ' + participantId);
271
             logger.error('No participant for id: ' + participantId);
269
             return;
272
             return;

Загрузка…
Отмена
Сохранить