diff --git a/java/src/org/openqa/selenium/remote/service/DriverService.java b/java/src/org/openqa/selenium/remote/service/DriverService.java index 43dc4c2edc0d9..a34f594e5ff1a 100644 --- a/java/src/org/openqa/selenium/remote/service/DriverService.java +++ b/java/src/org/openqa/selenium/remote/service/DriverService.java @@ -452,7 +452,7 @@ protected OutputStream getLogOutput() { } protected void parseLogOutput(String logProperty) { - if (getLogFile() != null) { + if (getLogFile() != null || logOutputStream != null) { return; }