openvidu-server: extended onIceCandidate log

pull/447/head
pabloFuente 2020-04-20 18:50:00 +02:00
parent 9efeb6c7a6
commit 1ffa632d41
2 changed files with 10 additions and 3 deletions

View File

@ -380,8 +380,9 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
String sdpMid = getStringParam(request, ProtocolElements.ONICECANDIDATE_SDPMIDPARAM); String sdpMid = getStringParam(request, ProtocolElements.ONICECANDIDATE_SDPMIDPARAM);
int sdpMLineIndex = getIntParam(request, ProtocolElements.ONICECANDIDATE_SDPMLINEINDEX_PARAM); int sdpMLineIndex = getIntParam(request, ProtocolElements.ONICECANDIDATE_SDPMLINEINDEX_PARAM);
log.info("New candidate received from client: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}", log.info(
endpointName, sdpMid, sdpMLineIndex, candidate); "New candidate received from participant {}: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}",
participant.getParticipantPublicId(), endpointName, sdpMid, sdpMLineIndex, candidate);
sessionManager.onIceCandidate(participant, endpointName, candidate, sdpMLineIndex, sdpMid, request.getId()); sessionManager.onIceCandidate(participant, endpointName, candidate, sdpMLineIndex, sdpMid, request.getId());
} }

View File

@ -2,14 +2,16 @@ package io.openvidu.server.utils;
public class GeoLocation { public class GeoLocation {
private String ip;
private String country; private String country;
private String city; private String city;
private String timezone; private String timezone;
private Double latitude; private Double latitude;
private Double longitude; private Double longitude;
public GeoLocation(String country, String city, String timezone, Double latitude, Double longitude) { public GeoLocation(String ip, String country, String city, String timezone, Double latitude, Double longitude) {
super(); super();
this.ip = ip;
this.country = country; this.country = country;
this.city = city; this.city = city;
this.timezone = timezone; this.timezone = timezone;
@ -17,6 +19,10 @@ public class GeoLocation {
this.longitude = longitude; this.longitude = longitude;
} }
public String getIp() {
return this.ip;
}
public String getCountry() { public String getCountry() {
return country; return country;
} }