Skip to content

Commit be6d288

Browse files
titusfortnerdiemol
andauthored
[java] Selenium Manager don't log file paths by default (#12673)
[java] Selenium Manager does not log location of browser and driver by default Co-authored-by: Diego Molina <[email protected]>
1 parent c8814ae commit be6d288

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/org/openqa/selenium/manager/SeleniumManager.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ private static Result runCommand(Path binary, List<String> arguments) {
127127
if (!output.isEmpty()) {
128128
try {
129129
jsonOutput = new Json().toType(output, SeleniumManagerOutput.class);
130-
jsonOutput.getLogs().forEach(logged -> LOG.log(logged.getLevel(), logged.getMessage()));
130+
jsonOutput.getLogs().forEach(logged -> {
131+
Level currentLevel = logged.getLevel() == Level.INFO ? Level.FINE : logged.getLevel();
132+
LOG.log(currentLevel, logged.getMessage());
133+
});
131134
dump = jsonOutput.getResult().getMessage();
132135
} catch (JsonException e) {
133136
failedToParse = e;

0 commit comments

Comments
 (0)