Skip to content

Commit e4e6362

Browse files
committed
[rb] fix bug with driver logging
the io accessor for the process sets a default value, so assigning with ||= operator will never work
1 parent eec4236 commit e4e6362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rb/lib/selenium/webdriver/common/service_manager.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def uri
8080
def build_process(*command)
8181
WebDriver.logger.debug("Executing Process #{command}", id: :driver_service)
8282
@process = ChildProcess.build(*command)
83-
@process.io = @io
84-
@process.io ||= WebDriver.logger.io if WebDriver.logger.debug?
83+
@io ||= WebDriver.logger.io if WebDriver.logger.debug?
84+
@process.io = @io if @io
8585

8686
@process
8787
end

0 commit comments

Comments
 (0)