Bug 1546408: Add some logging that was useful. r=mjf
authorByron Campen [:bwc] <docfaraday@gmail.com>
Fri, 26 Apr 2019 14:44:20 +0000
changeset 530759 2142b683df7c53f9c4202ab8567e892a8422bf1e
parent 530758 94a8d41c171d0523eff5bdb26b3913992240c98b
child 530760 cfe0ed93f712f0b4a538142ed1d6748831710254
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjf
bugs1546408
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546408: Add some logging that was useful. r=mjf Depends on D28876 Differential Revision: https://phabricator.services.mozilla.com/D28877
media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
--- a/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
+++ b/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
@@ -357,16 +357,17 @@ JsepSession::Result JsepSessionImpl::Cre
     rv = CopyPreviousTransportParams(*GetAnswer(), *mCurrentLocalDescription,
                                      *sdp, sdp.get());
     NS_ENSURE_SUCCESS(rv, dom::PCError::OperationError);
   }
 
   *offer = sdp->ToString();
   mGeneratedOffer = std::move(sdp);
   ++mSessionVersion;
+  MOZ_MTLOG(ML_DEBUG, "[" << mName << "]: CreateOffer \nSDP=\n" << *offer);
 
   return Result();
 }
 
 std::string JsepSessionImpl::GetLocalDescription(
     JsepDescriptionPendingOrCurrent type) const {
   std::ostringstream os;
   mozilla::Sdp* sdp = GetParsedLocalDescription(type);
@@ -487,16 +488,17 @@ JsepSession::Result JsepSessionImpl::Cre
     rv = CopyPreviousTransportParams(*GetAnswer(), *mCurrentRemoteDescription,
                                      offer, sdp.get());
     NS_ENSURE_SUCCESS(rv, dom::PCError::OperationError);
   }
 
   *answer = sdp->ToString();
   mGeneratedAnswer = std::move(sdp);
   ++mSessionVersion;
+  MOZ_MTLOG(ML_DEBUG, "[" << mName << "]: CreateAnswer \nSDP=\n" << *answer);
 
   return Result();
 }
 
 nsresult JsepSessionImpl::CreateAnswerMsection(
     const JsepAnswerOptions& options, JsepTransceiver& transceiver,
     const SdpMediaSection& remoteMsection, Sdp* sdp) {
   MOZ_ASSERT(transceiver.GetMediaType() == remoteMsection.GetMediaType());