Skip to content

Commit

Permalink
fix: For security purposes, remove the output of Capabilities informa…
Browse files Browse the repository at this point in the history
…tion from the logs.

Fixes SeleniumHQ#13648
  • Loading branch information
zhangwt-cn committed Mar 20, 2024
1 parent 4c279c7 commit 0a8c20e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public Either<SessionNotCreatedException, CreateSessionResponse> newSession(
span.addEvent(sessionCreatedMessage, attributeMap);
LOG.info(
String.format(
"%s. Id: %s %n Caps: %s", sessionCreatedMessage, sessionId, sessionCaps));
"%s. Id: %s", sessionCreatedMessage, sessionId));

return Either.right(response);
} catch (SessionNotCreatedException e) {
Expand Down
4 changes: 2 additions & 2 deletions java/src/org/openqa/selenium/grid/node/local/LocalNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ public Either<WebDriverException, CreateSessionResponse> newSession(
String sessionCreatedMessage = "Session created by the Node";
LOG.info(
String.format(
"%s. Id: %s, Caps: %s",
sessionCreatedMessage, sessionId, externalSession.getCapabilities()));
"%s. Id: %s",
sessionCreatedMessage, sessionId));

return Either.right(
new CreateSessionResponse(
Expand Down

0 comments on commit 0a8c20e

Please sign in to comment.