From ba766608b41016546bc5be1a7246d8b60e180317 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 19 Aug 2020 05:14:16 +0300 Subject: Dropped WebRTCAdapter request messages logging. --- Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Software/Visual_Studio/Tango.WebRTC') diff --git a/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs b/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs index 606f8d5c8..d6431fe60 100644 --- a/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs +++ b/Software/Visual_Studio/Tango.WebRTC/WebRtcTransportAdapter.cs @@ -121,7 +121,6 @@ namespace Tango.WebRTC var response = await SignalingTransporter.SendGenericRequest(new OfferRequest() { Offer = offer }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(30), - ShouldLog = true }); LogManager.Log("WebRTC offer sent and responded with an answer. Setting WebRTC answer..."); @@ -130,14 +129,13 @@ namespace Tango.WebRTC foreach (var ice in _queuedIceCandidates.ToList()) { - LogManager.Log("Sending existing ice candidate..."); + LogManager.Log($"Sending existing ice candidate '{ice.Sdp}'..."); try { await SignalingTransporter.SendGenericRequest(new IceCandidateRequest() { IceCandidate = ice }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(30), - ShouldLog = true }); } catch (Exception ex) @@ -216,14 +214,13 @@ namespace Tango.WebRTC foreach (var ice in _queuedIceCandidates.ToList()) { - LogManager.Log("Sending existing ice candidate..."); + LogManager.Log($"Sending existing ice candidate '{ice.Sdp}'..."); try { await SignalingTransporter.SendGenericRequest(new IceCandidateRequest() { IceCandidate = ice }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(30), - ShouldLog = true }); } catch (Exception ex) @@ -245,7 +242,6 @@ namespace Tango.WebRTC await SignalingTransporter.SendGenericRequest(new IceCandidateRequest() { IceCandidate = e.IceCandidate }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(30), - ShouldLog = true }); } else @@ -275,7 +271,7 @@ namespace Tango.WebRTC LogManager.Log($"{ComponentName}: Ice candidate request received from the remote peer."); await SignalingTransporter.SendGenericResponse(new IceCandidateResponse() { }, token); - LogManager.Log("Adding ice candidate..."); + LogManager.Log($"Adding ice candidate '{request.IceCandidate.Sdp}'..."); _client.AddIceCandidate(request.IceCandidate); LogManager.Log($"{ComponentName}: Ice candidate added."); } -- cgit v1.3.1