lib/skylight/util/logging.rb in skylight-5.0.0.beta vs lib/skylight/util/logging.rb in skylight-5.0.0.beta2
- old
+ new
@@ -7,15 +7,15 @@
def initialize(logger)
@logger = logger
end
def write(*args)
- STDERR.write(*args)
+ $stderr.write(*args)
# Try to avoid writing to STDOUT/STDERR twice
logger_logdev = @logger.instance_variable_get(:@logdev)
logger_out = logger_logdev&.respond_to?(:dev) ? logger_logdev.dev : nil
- if logger_out != STDOUT && logger_out != STDERR
+ if logger_out != $stdout && logger_out != $stderr
@logger.<<(*args)
end
end
def close; end