From 2be5be6ed4f67a59b401c2e233f5dadee382bf5d Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Mon, 17 Feb 2020 12:41:37 +0100 Subject: [PATCH] openvidu-server: better log on ice candidate error (show candidate) --- .../io/openvidu/server/kurento/endpoint/MediaEndpoint.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openvidu-server/src/main/java/io/openvidu/server/kurento/endpoint/MediaEndpoint.java b/openvidu-server/src/main/java/io/openvidu/server/kurento/endpoint/MediaEndpoint.java index 30de7298..48d3eacf 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/kurento/endpoint/MediaEndpoint.java +++ b/openvidu-server/src/main/java/io/openvidu/server/kurento/endpoint/MediaEndpoint.java @@ -510,12 +510,13 @@ public abstract class MediaEndpoint { this.webEndpoint.addIceCandidate(candidate, new Continuation() { @Override public void onSuccess(Void result) throws Exception { - log.trace("Ice candidate added to the internal endpoint"); + log.trace("Ice candidate \"{}\" added to the internal endpoint", candidate.getCandidate()); } @Override public void onError(Throwable cause) throws Exception { - log.warn("EP {}: Failed to add ice candidate to the internal endpoint", endpointName, cause); + log.warn("EP {}: Failed to add ice candidate \"{}\" to the internal endpoint: {}", endpointName, + candidate.getCandidate(), cause.getMessage()); } }); }