瀏覽代碼

fix(ParticipantConnectionStatus): adjust debug msgs

dev1
paweldomas 9 年之前
父節點
當前提交
d66a66395e
共有 1 個檔案被更改,包括 8 行新增5 行删除
  1. 8
    5
      modules/connectivity/ParticipantConnectionStatus.js

+ 8
- 5
modules/connectivity/ParticipantConnectionStatus.js 查看文件

332
             logger.info(
332
             logger.info(
333
                 "Remote track removed for disconnected" +
333
                 "Remote track removed for disconnected" +
334
                 " participant, when the status according to" +
334
                 " participant, when the status according to" +
335
-                " the JVB is connected. Adjusting to the JVB value.");
335
+                " the JVB is connected. Adjusting to the JVB value for: "
336
+                + endpointId);
336
             this._changeConnectionStatus(endpointId, isConnActiveByJvb);
337
             this._changeConnectionStatus(endpointId, isConnActiveByJvb);
337
         }
338
         }
338
     }
339
     }
374
      * event will be processed.
375
      * event will be processed.
375
      */
376
      */
376
     onTrackRtcUnmuted(track) {
377
     onTrackRtcUnmuted(track) {
377
-        logger.debug('Detector track RTC unmuted: ', track);
378
         var participantId = track.getParticipantId();
378
         var participantId = track.getParticipantId();
379
+        logger.debug('Detector track RTC unmuted: ' + participantId);
379
         if (!track.isMuted() &&
380
         if (!track.isMuted() &&
380
             !this.conference.getParticipantById(participantId)
381
             !this.conference.getParticipantById(participantId)
381
                 .isConnectionActive()) {
382
                 .isConnectionActive()) {
394
      * the signalling mute/unmute event will be processed.
395
      * the signalling mute/unmute event will be processed.
395
      */
396
      */
396
     onSignallingMuteChanged (track) {
397
     onSignallingMuteChanged (track) {
397
-        logger.debug(
398
-            'Detector on track signalling mute changed: ',
399
-            track, track.isMuted());
400
         var isMuted = track.isMuted();
398
         var isMuted = track.isMuted();
401
         var participantId = track.getParticipantId();
399
         var participantId = track.getParticipantId();
400
+
401
+        logger.debug(
402
+            'Detector on track signalling mute changed: ',
403
+            participantId, track.isMuted());
404
+
402
         var participant = this.conference.getParticipantById(participantId);
405
         var participant = this.conference.getParticipantById(participantId);
403
         if (!participant) {
406
         if (!participant) {
404
             logger.error('No participant for id: ' + participantId);
407
             logger.error('No participant for id: ' + participantId);

Loading…
取消
儲存