lib/redimap/base.rb in redimap-0.3.1 vs lib/redimap/base.rb in redimap-0.4.0
- old
+ new
@@ -7,16 +7,18 @@
@config ||= Redimap::Config.new
end
def self.configure
yield self.config
+
+ Redimap.logger.debug { "Configured #{Redimap.config.to_s}" }
end
def self.logger
unless @logger
@logger = Logger.new($stdout)
- @logger.level = Logger.const_get(ENV['LOG_LEVEL'] || 'INFO')
+ @logger.level = Logger.const_get(Redimap.config.log_level)
@logger.progname = :Redimap
end
@logger
end