openvidu-server: remove logging of tokens

pull/609/head
pabloFuente 2021-02-02 11:14:59 +01:00
parent 0225c09b64
commit 8f822cde33
3 changed files with 0 additions and 8 deletions

View File

@ -191,10 +191,6 @@ public class Session implements SessionInterface {
return this.tokens.entrySet().iterator();
}
public void showTokens(String preMessage) {
log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString());
}
public boolean isClosed() {
return closed;
}

View File

@ -310,7 +310,6 @@ public abstract class SessionManager {
Token tokenObj = tokenGenerator.generateToken(session.getSessionId(), serverMetadata, record, role,
kurentoOptions);
session.storeToken(tokenObj);
session.showTokens("Token created");
return tokenObj;
}
@ -319,7 +318,6 @@ public abstract class SessionManager {
Token tokenObj = new Token(token, session.getSessionId(), connectionProperties,
this.openviduConfig.isTurnadminAvailable() ? this.coturnCredentialsService.createUser() : null);
session.storeToken(tokenObj);
session.showTokens("Token created for insecure user");
return tokenObj;
}

View File

@ -262,8 +262,6 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
Token tokenObj = session.consumeToken(token);
if (tokenObj != null) {
session.showTokens("Token consumed");
String clientMetadata = getStringParam(request, ProtocolElements.JOINROOM_METADATA_PARAM);
if (sessionManager.formatChecker.isServerMetadataFormatCorrect(clientMetadata)) {