Skip to content

Commit a0a3914

Browse files
committed
[java] Improving logging to understand why "Value must be set" is raised.
1 parent 86fd063 commit a0a3914

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

java/src/org/openqa/selenium/grid/node/config/DriverServiceSessionFactory.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.Set;
3434
import java.util.function.Function;
3535
import java.util.function.Predicate;
36+
import java.util.logging.Level;
3637
import java.util.logging.Logger;
3738
import java.util.stream.Stream;
3839
import org.openqa.selenium.Capabilities;
@@ -329,10 +330,11 @@ private Capabilities setBrowserBinary(Capabilities options, String browserPath)
329330
.setCapability(vendorOptionsCapability, vendorOptions)
330331
.setCapability("browserVersion", null);
331332
} catch (Exception e) {
332-
LOG.warning(
333+
LOG.log(
334+
Level.WARNING,
333335
String.format(
334-
"Exception while setting the browser binary path. %s: %s",
335-
options, e.getMessage()));
336+
"Exception while setting the browser binary path. Options: %s", options),
337+
e);
336338
}
337339
}
338340
}

0 commit comments

Comments
 (0)