From e4e636223ca42179a0ce8e67a186b3d87e004506 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Fri, 5 May 2023 21:47:49 -0500 Subject: [PATCH] [rb] fix bug with driver logging the io accessor for the process sets a default value, so assigning with ||= operator will never work --- rb/lib/selenium/webdriver/common/service_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rb/lib/selenium/webdriver/common/service_manager.rb b/rb/lib/selenium/webdriver/common/service_manager.rb index 92461a7081c9c..e4c416bd9e6bd 100644 --- a/rb/lib/selenium/webdriver/common/service_manager.rb +++ b/rb/lib/selenium/webdriver/common/service_manager.rb @@ -80,8 +80,8 @@ def uri def build_process(*command) WebDriver.logger.debug("Executing Process #{command}", id: :driver_service) @process = ChildProcess.build(*command) - @process.io = @io - @process.io ||= WebDriver.logger.io if WebDriver.logger.debug? + @io ||= WebDriver.logger.io if WebDriver.logger.debug? + @process.io = @io if @io @process end