openvidu-server: removed debug log lines

pull/508/head
pabloFuente 2020-06-17 20:27:51 +02:00
parent 759910774f
commit 84a4545d45
1 changed files with 0 additions and 9 deletions

View File

@ -210,23 +210,14 @@ public class SessionRestController {
log.info("REST API: GET /api/sessions?webRtcStats={}", webRtcStats); log.info("REST API: GET /api/sessions?webRtcStats={}", webRtcStats);
Collection<Session> sessions = this.sessionManager.getSessionsWithNotActive(); Collection<Session> sessions = this.sessionManager.getSessionsWithNotActive();
log.info("1. Session collection retrieved");
JsonObject json = new JsonObject(); JsonObject json = new JsonObject();
JsonArray jsonArray = new JsonArray(); JsonArray jsonArray = new JsonArray();
sessions.forEach(s -> { sessions.forEach(s -> {
log.info("2. Gathering info for session {}", s.getSessionId());
JsonObject sessionJson = (webRtcStats == true) ? s.withStatsToJson() : s.toJson(); JsonObject sessionJson = (webRtcStats == true) ? s.withStatsToJson() : s.toJson();
jsonArray.add(sessionJson); jsonArray.add(sessionJson);
}); });
json.addProperty("numberOfElements", sessions.size()); json.addProperty("numberOfElements", sessions.size());
json.add("content", jsonArray); json.add("content", jsonArray);
log.info("3. Sending response back");
return new ResponseEntity<>(json.toString(), getResponseHeaders(), HttpStatus.OK); return new ResponseEntity<>(json.toString(), getResponseHeaders(), HttpStatus.OK);
} }