RnP: Fix use of deprecated IO#lines in logging functions
This commit is contained in:
parent
2b8d7a9858
commit
d4e7605f42
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user