lib/rabbit/daemon.rb in rabbit_messaging-0.7.0 vs lib/rabbit/daemon.rb in rabbit_messaging-0.7.1

- old
+ new

@@ -22,12 +22,14 @@ daemonize: false, exit_on_detach: true, **config, ) - Sneakers.logger = Logger.new(Rails.root.join("log", "sneakers.log")) - Sneakers.logger.level = Logger::DEBUG - Lamian.extend_logger(Sneakers.logger) + unless Sneakers.logger + Sneakers.logger = Logger.new(Rails.root.join("log", "sneakers.log")) + Sneakers.logger.level = Logger::DEBUG + Lamian.extend_logger(Sneakers.logger) + end Sneakers.server = true Rabbit.config.validate! Receiving::Worker.from_queue(Rabbit.config.read_queue)