mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: removed debug log lines
parent
759910774f
commit
84a4545d45
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue