openvidu-server: white lines clear up

pull/431/head
pabloFuente 2020-04-08 18:57:09 +02:00
parent 2675077093
commit a639fcbbc3
2 changed files with 18 additions and 18 deletions

View File

@ -243,7 +243,7 @@ public class OpenViduServer implements JsonRpcConfigurer {
for (Error error : config.getConfigErrors()) { for (Error error : config.getConfigErrors()) {
msg += " * "; msg += " * ";
if(error.getProperty() != null) { if (error.getProperty() != null) {
msg += "Property " + config.getPropertyName(error.getProperty()); msg += "Property " + config.getPropertyName(error.getProperty());
if (error.getValue() == null || error.getValue().equals("")) { if (error.getValue() == null || error.getValue().equals("")) {
msg += " is not set. "; msg += " is not set. ";
@ -268,15 +268,15 @@ public class OpenViduServer implements JsonRpcConfigurer {
} else { } else {
String msg = "\n\n\n" + " Configuration properties\n" + " ----------------------\n" + "\n"; String msg = "\n\n\n" + " Configuration properties\n" + " ------------------------\n" + "\n";
Map<String, String> configProps = config.getConfigProps(); Map<String, String> configProps = config.getConfigProps();
List<String> configPropNames = new ArrayList<>(config.getUserProperties()); List<String> configPropNames = new ArrayList<>(config.getUserProperties());
Collections.sort(configPropNames); Collections.sort(configPropNames);
for(String property : configPropNames) { for (String property : configPropNames) {
String value = configProps.get(property); String value = configProps.get(property);
msg += " * "+config.getPropertyName(property)+"="+(value == null? "": value)+"\n"; msg += " * " + config.getPropertyName(property) + "=" + (value == null ? "" : value) + "\n";
} }
msg += "\n\n"; msg += "\n\n";
@ -290,10 +290,10 @@ public class OpenViduServer implements JsonRpcConfigurer {
String dashboardUrl = httpUrl + "dashboard/"; String dashboardUrl = httpUrl + "dashboard/";
// @formatter:off // @formatter:off
String msg = "\n\n----------------------------------------------------\n" + "\n" String msg = "\n\n----------------------------------------------------\n" + "\n" + " OpenVidu is ready!\n"
+ " OpenVidu Platform is ready!\n" + " ---------------------------\n" + "\n" + " ---------------------------\n" + "\n" + " * OpenVidu Server: " + httpUrl + "\n" + "\n"
+ " * OpenVidu Server: " + httpUrl + "\n" + "\n" + " * OpenVidu Dashboard: " + dashboardUrl + "\n" + " * OpenVidu Dashboard: " + dashboardUrl + "\n" + "\n"
+ "\n" + "----------------------------------------------------\n"; + "----------------------------------------------------\n";
// @formatter:on // @formatter:on
log.info(msg); log.info(msg);

View File

@ -437,6 +437,9 @@ public class OpenviduConfig {
openviduStreamsVideoMaxSendBandwidth = asNonNegativeInteger("openvidu.streams.video.max-send-bandwidth"); openviduStreamsVideoMaxSendBandwidth = asNonNegativeInteger("openvidu.streams.video.max-send-bandwidth");
openviduStreamsVideoMinSendBandwidth = asNonNegativeInteger("openvidu.streams.video.min-send-bandwidth"); openviduStreamsVideoMinSendBandwidth = asNonNegativeInteger("openvidu.streams.video.min-send-bandwidth");
openviduSessionsGarbageInterval = asNonNegativeInteger("openvidu.sessions.garbage.interval");
openviduSessionsGarbageThreshold = asNonNegativeInteger("openvidu.sessions.garbage.threshold");
kmsUrisList = checkKmsUris(); kmsUrisList = checkKmsUris();
checkCoturnIp(); checkCoturnIp();
@ -447,9 +450,6 @@ public class OpenviduConfig {
checkCertificateType(); checkCertificateType();
openviduSessionsGarbageInterval = asNonNegativeInteger("openvidu.sessions.garbage.interval");
openviduSessionsGarbageThreshold = asNonNegativeInteger("openvidu.sessions.garbage.threshold");
} }
private void checkCertificateType() { private void checkCertificateType() {