lib/rflow.rb in rflow-1.0.0 vs lib/rflow.rb in rflow-1.0.1
- old
+ new
@@ -15,10 +15,12 @@
include Log4r
class << self
attr_accessor :logger
attr_reader :configuration, :master
+
+ RFlow.logger = RFlow::Logger.new({})
end
def self.run!(config_database_path = nil, daemonize = false)
@config_database_path = config_database_path
@daemonize = daemonize
@@ -47,10 +49,10 @@
Dir.chdir configuration['rflow.application_directory_path']
end
def self.setup_logger
include_stdout = !@daemonize
- self.logger = RFlow::Logger.new(configuration, include_stdout)
+ logger.reconfigure(configuration, include_stdout)
end
def self.start_master_node
RFlow.logger.info "#{configuration['rflow.application_name']} starting"
@master = Master.new(configuration)