lib/railway_ipc.rb in railway-ipc-2.2.0 vs lib/railway_ipc.rb in railway-ipc-2.2.1

- old
+ new

@@ -3,11 +3,10 @@ require 'railway_ipc/version' require 'sneakers' require 'sneakers/spawner' require 'bunny' require 'active_record' -require 'railway_ipc/version' require 'railway_ipc/logger' require 'railway_ipc/unhandled_message_error' require 'railway_ipc/response' require 'railway_ipc/rabbitmq/payload' require 'railway_ipc/unknown_message.pb' @@ -32,15 +31,15 @@ def self.spawn Sneakers::Spawner.spawn end - def self.configure(log_device=STDOUT, level=::Logger::INFO, log_formatter=nil) + def self.configure(log_device=$stdout, level=::Logger::INFO, log_formatter=nil) @logger = RailwayIpc::Logger.new(log_device, level, log_formatter) end def self.logger - @logger || RailwayIpc::Logger.new(STDOUT) + @logger || RailwayIpc::Logger.new($stdout) end def self.bunny_connection @bunny_connection ||= RailwayIpc::Rabbitmq::Adapter.new( exchange_name: 'default',