We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d78a8ec commit 6ff7f54Copy full SHA for 6ff7f54
java/src/org/openqa/selenium/remote/service/DriverService.java
@@ -444,8 +444,12 @@ protected Duration getDefaultTimeout() {
444
}
445
446
protected OutputStream getLogOutput() {
447
+ if (logOutputStream != null) {
448
+ return logOutputStream;
449
+ }
450
try {
- return logOutputStream != null ? logOutputStream : new FileOutputStream(logFile);
451
+ File logFile = getLogFile();
452
+ return logFile == null ? ByteStreams.nullOutputStream() : new FileOutputStream(logFile);
453
} catch (FileNotFoundException e) {
454
throw new RuntimeException(e);
455
0 commit comments