lib/scout/log/trap.rb in scout-gear-8.0.0 vs lib/scout/log/trap.rb in scout-gear-8.1.0

- old
+ new

@@ -1,9 +1,9 @@ module Log def self.trap_std(msg = "STDOUT", msge = "STDERR", severity = 0, severity_err = nil) - sout, sin = Misc.pipe - soute, sine = Misc.pipe + sout, sin = Open.pipe + soute, sine = Open.pipe backup_stderr = STDERR.dup backup_stdout = STDOUT.dup old_logfile = Log.logfile Log.logfile(backup_stderr) @@ -36,10 +36,10 @@ Log.logfile = old_logfile end end def self.trap_stderr(msg = "STDERR", severity = 0) - sout, sin = Misc.pipe + sout, sin = Open.pipe backup_stderr = STDERR.dup old_logfile = Log.logfile Log.logfile(backup_stderr) th_log = Thread.new do