openvidu-server: better log on ice candidate error (show candidate)

pull/391/head
pabloFuente 2020-02-17 12:41:37 +01:00
parent dc8a0449b9
commit 2be5be6ed4
1 changed files with 3 additions and 2 deletions

View File

@ -510,12 +510,13 @@ public abstract class MediaEndpoint {
this.webEndpoint.addIceCandidate(candidate, new Continuation<Void>() { this.webEndpoint.addIceCandidate(candidate, new Continuation<Void>() {
@Override @Override
public void onSuccess(Void result) throws Exception { 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 @Override
public void onError(Throwable cause) throws Exception { 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());
} }
}); });
} }