openvidu-server: add getter for CDRLogger

pull/255/head
pabloFuente 2019-02-25 10:10:36 +01:00
parent 77b93ee8f3
commit 7e05fb2eb2
2 changed files with 5 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class OpenViduServer implements JsonRpcConfigurer {
} }
@EventListener(ApplicationReadyEvent.class) @EventListener(ApplicationReadyEvent.class)
public void printUrl() { public void whenReady() {
final String NEW_LINE = System.lineSeparator(); final String NEW_LINE = System.lineSeparator();
String str = NEW_LINE + String str = NEW_LINE +
NEW_LINE + " ACCESS IP " + NEW_LINE + " ACCESS IP " +

View File

@ -97,6 +97,10 @@ public class CallDetailRecord {
this.loggers = loggers; this.loggers = loggers;
} }
public Collection<CDRLogger> getLoggers() {
return this.loggers;
}
public void recordSessionCreated(Session session) { public void recordSessionCreated(Session session) {
CDREventSession e = new CDREventSession(session); CDREventSession e = new CDREventSession(session);
this.sessions.put(session.getSessionId(), e); this.sessions.put(session.getSessionId(), e);