From d4e7605f42004675169bbd44596a7a9536da8852 Mon Sep 17 00:00:00 2001 From: Calvin Walton Date: Tue, 2 Aug 2016 10:58:42 -0400 Subject: [PATCH] RnP: Fix use of deprecated IO#lines in logging functions --- record-and-playback/core/lib/recordandplayback.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/record-and-playback/core/lib/recordandplayback.rb b/record-and-playback/core/lib/recordandplayback.rb index 2edbbe7b88..2b83b5d28a 100755 --- a/record-and-playback/core/lib/recordandplayback.rb +++ b/record-and-playback/core/lib/recordandplayback.rb @@ -126,7 +126,7 @@ module BigBlueButton def self.exec_ret(*command) BigBlueButton.logger.info "Executing: #{command.join(' ')}" IO.popen([*command, :err => [:child, :out]]) do |io| - io.lines.each do |line| + io.each_line do |line| BigBlueButton.logger.info line.chomp end end @@ -140,7 +140,7 @@ module BigBlueButton IO.pipe do |r, w| pid = spawn(*command, :out => outio, :err => w) w.close - r.lines.each do |line| + r.each_line do |line| BigBlueButton.logger.info line.chomp end Process.waitpid(pid)