lib/daengine.rb in daengine-0.2.2 vs lib/daengine.rb in daengine-0.2.3
- old
+ new
@@ -9,11 +9,11 @@
require 'mongoid'
require 'logger'
require 'nokogiri'
module Daengine
- @logger = Logger.new("/logs/daengine.log")
+ @logger
@config = {
:assets_path => '/digital-assets',
:taxonomy_xml_filepath => '/taxonomy.xml'
}
@@ -56,11 +56,11 @@
@config
end
def self.execute(config_options)
self.configure(config_options)
- self.set_logger()
+ self.set_logger
self.log("Daengine: ### Loading application config ###", "info")
config_options.each { |key, value| self.log("CONFIG #{key}\t#{value}", "info")}
begin
DigitalAssetProcessor.process_tuple_directory # start the thread daemon
rescue Exception => e
@@ -68,10 +68,10 @@
end
end
def self.execute_taxonomy(config_options)
self.configure(config_options)
- self.set_logger()
+ self.set_logger
self.log("Daengine: ### Loading application config ###", "info")
config_options.each { |key, value| self.log("CONFIG #{key}\t#{value}", "info")}
begin
TaxonomyProcessor.process_taxonomy_file
rescue Exception => e