@webex/plugin-meetings 3.0.0-beta.56 → 3.0.0-beta.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
130
130
  sessionId: this.sessionId
131
131
  });
132
132
  },
133
- version: "3.0.0-beta.56"
133
+ version: "3.0.0-beta.58"
134
134
  });
135
135
  var _default = Breakout;
136
136
  exports.default = _default;
@@ -718,7 +718,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
718
718
  }
719
719
  });
720
720
  },
721
- version: "3.0.0-beta.56"
721
+ version: "3.0.0-beta.58"
722
722
  });
723
723
  var _default = Breakouts;
724
724
  exports.default = _default;
@@ -90,18 +90,14 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
90
90
  var _BrowserDetection = (0, _browserDetection.default)(),
91
91
  isBrowser = _BrowserDetection.isBrowser;
92
92
  var logRequest = function logRequest(request, _ref) {
93
- var _ref$header = _ref.header,
94
- header = _ref$header === void 0 ? '' : _ref$header,
95
- _ref$success = _ref.success,
96
- success = _ref$success === void 0 ? '' : _ref$success,
97
- _ref$failure = _ref.failure,
98
- failure = _ref$failure === void 0 ? '' : _ref$failure;
99
- _loggerProxy.default.logger.info(header);
93
+ var _ref$logText = _ref.logText,
94
+ logText = _ref$logText === void 0 ? '' : _ref$logText;
95
+ _loggerProxy.default.logger.info("".concat(logText, " - sending request"));
100
96
  return request.then(function (arg) {
101
- _loggerProxy.default.logger.info(success);
97
+ _loggerProxy.default.logger.info("".concat(logText, " - has been successfully sent"));
102
98
  return arg;
103
99
  }).catch(function (error) {
104
- _loggerProxy.default.logger.error(failure, error);
100
+ _loggerProxy.default.logger.error("".concat(logText, " - has failed: "), error);
105
101
  throw error;
106
102
  });
107
103
  };
@@ -682,7 +678,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
682
678
  });
683
679
  _this.mediaProperties.webrtcMediaConnection.on(_internalMediaCore.Event.ROAP_FAILURE, _this.handleRoapFailure);
684
680
  _this.mediaProperties.webrtcMediaConnection.on(_internalMediaCore.Event.ROAP_MESSAGE_TO_SEND, function (event) {
685
- var LOG_HEADER = 'Meeting:index#setupMediaConnectionListeners.ROAP_MESSAGE_TO_SEND -->';
681
+ var LOG_HEADER = "Meeting:index#setupMediaConnectionListeners.ROAP_MESSAGE_TO_SEND --> correlationId=".concat(_this.correlationId);
686
682
  switch (event.roapMessage.messageType) {
687
683
  case 'OK':
688
684
  _metrics.default.postEvent({
@@ -694,9 +690,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
694
690
  mediaId: _this.mediaId,
695
691
  correlationId: _this.correlationId
696
692
  }), {
697
- header: "".concat(LOG_HEADER, " Send Roap OK"),
698
- success: "".concat(LOG_HEADER, " Successfully send roap OK"),
699
- failure: "".concat(LOG_HEADER, " Error joining the call on send roap OK, ")
693
+ logText: "".concat(LOG_HEADER, " Roap OK")
700
694
  });
701
695
  break;
702
696
  case 'OFFER':
@@ -712,9 +706,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
712
706
  // or can pass meeting ID
713
707
  reconnect: _this.reconnectionManager.isReconnectInProgress()
714
708
  }), {
715
- header: "".concat(LOG_HEADER, " Send Roap Offer"),
716
- success: "".concat(LOG_HEADER, " Successfully send roap offer"),
717
- failure: "".concat(LOG_HEADER, " Error joining the call on send roap offer, ")
709
+ logText: "".concat(LOG_HEADER, " Roap Offer")
718
710
  });
719
711
  break;
720
712
  case 'ANSWER':
@@ -728,9 +720,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
728
720
  mediaId: _this.mediaId,
729
721
  correlationId: _this.correlationId
730
722
  }), {
731
- header: "".concat(LOG_HEADER, " Send Roap Answer."),
732
- success: "".concat(LOG_HEADER, " Successfully send roap answer"),
733
- failure: "".concat(LOG_HEADER, " Error joining the call on send roap answer, ")
723
+ logText: "".concat(LOG_HEADER, " Roap Answer")
734
724
  }).catch(function (error) {
735
725
  var metricName = _constants2.default.ROAP_ANSWER_FAILURE;
736
726
  var data = {
@@ -759,9 +749,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
759
749
  mediaId: _this.mediaId,
760
750
  correlationId: _this.correlationId
761
751
  }), {
762
- header: "".concat(LOG_HEADER, " Send Roap Error."),
763
- success: "".concat(LOG_HEADER, " Successfully send roap error"),
764
- failure: "".concat(LOG_HEADER, " Failed to send roap error, ")
752
+ logText: "".concat(LOG_HEADER, " Roap Error (").concat(event.roapMessage.errorType, ")")
765
753
  });
766
754
  break;
767
755
  default:
@@ -832,7 +820,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
832
820
  locus_id: _this.locusId
833
821
  });
834
822
  };
835
- _loggerProxy.default.logger.info("Meeting:index#setupMediaConnectionListeners --> connection state changed to ".concat(event.state));
823
+ _loggerProxy.default.logger.info("Meeting:index#setupMediaConnectionListeners --> correlationId=".concat(_this.correlationId, " connection state changed to ").concat(event.state));
836
824
  switch (event.state) {
837
825
  case _internalMediaCore.ConnectionState.Connecting:
838
826
  _metrics.default.postEvent({
@@ -3816,7 +3804,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3816
3804
  if (!this.audio) {
3817
3805
  return _promise.default.reject(new _parameter.default('no audio control associated to the meeting'));
3818
3806
  }
3819
- var LOG_HEADER = 'Meeting:index#muteAudio -->';
3820
3807
 
3821
3808
  // First, stop sending the local audio media
3822
3809
  return logRequest(this.audio.handleClientRequest(this, true).then(function () {
@@ -3838,9 +3825,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3838
3825
  });
3839
3826
  throw error;
3840
3827
  }), {
3841
- header: "".concat(LOG_HEADER, " muting audio"),
3842
- success: "".concat(LOG_HEADER, " muted audio successfully"),
3843
- failure: "".concat(LOG_HEADER, " muting audio failed, ")
3828
+ logText: "Meeting:index#muteAudio --> correlationId=".concat(this.correlationId, " muting audio")
3844
3829
  });
3845
3830
  }
3846
3831
 
@@ -3866,7 +3851,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3866
3851
  if (!this.audio) {
3867
3852
  return _promise.default.reject(new _parameter.default('no audio control associated to the meeting'));
3868
3853
  }
3869
- var LOG_HEADER = 'Meeting:index#unmuteAudio -->';
3870
3854
 
3871
3855
  // First, send the control to unmute the participant on the server
3872
3856
  return logRequest(this.audio.handleClientRequest(this, false).then(function () {
@@ -3888,9 +3872,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3888
3872
  });
3889
3873
  throw error;
3890
3874
  }), {
3891
- header: "".concat(LOG_HEADER, " unmuting audio"),
3892
- success: "".concat(LOG_HEADER, " unmuted audio successfully"),
3893
- failure: "".concat(LOG_HEADER, " unmuting audio failed, ")
3875
+ logText: "Meeting:index#unmuteAudio --> correlationId=".concat(this.correlationId, " unmuting audio")
3894
3876
  });
3895
3877
  }
3896
3878
 
@@ -3916,7 +3898,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3916
3898
  if (!this.video) {
3917
3899
  return _promise.default.reject(new _parameter.default('no video control associated to the meeting'));
3918
3900
  }
3919
- var LOG_HEADER = 'Meeting:index#muteVideo -->';
3920
3901
  return logRequest(this.video.handleClientRequest(this, true).then(function () {
3921
3902
  _util.default.handleVideoLogging(_this28.mediaProperties.videoTrack);
3922
3903
  _metrics.default.postEvent({
@@ -3936,9 +3917,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3936
3917
  });
3937
3918
  throw error;
3938
3919
  }), {
3939
- header: "".concat(LOG_HEADER, " muting video"),
3940
- success: "".concat(LOG_HEADER, " muted video successfully"),
3941
- failure: "".concat(LOG_HEADER, " muting video failed, ")
3920
+ logText: "Meeting:index#muteVideo --> correlationId=".concat(this.correlationId, " muting video")
3942
3921
  });
3943
3922
  }
3944
3923
 
@@ -3964,7 +3943,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3964
3943
  if (!this.video) {
3965
3944
  return _promise.default.reject(new _parameter.default('no audio control associated to the meeting'));
3966
3945
  }
3967
- var LOG_HEADER = 'Meeting:index#unmuteVideo -->';
3968
3946
  return logRequest(this.video.handleClientRequest(this, false).then(function () {
3969
3947
  _util.default.handleVideoLogging(_this29.mediaProperties.videoTrack);
3970
3948
  _metrics.default.postEvent({
@@ -3984,9 +3962,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3984
3962
  });
3985
3963
  throw error;
3986
3964
  }), {
3987
- header: "".concat(LOG_HEADER, " unmuting video"),
3988
- success: "".concat(LOG_HEADER, " unmuted video successfully"),
3989
- failure: "".concat(LOG_HEADER, " unmuting video failed, ")
3965
+ logText: "Meeting:index#unmuteVideo --> correlationId=".concat(this.correlationId, " unmuting video")
3990
3966
  });
3991
3967
  }
3992
3968