lib/litle/config/configuration.rb in killbill-litle-1.8.2 vs lib/litle/config/configuration.rb in killbill-litle-1.9.0
- old
+ new
@@ -15,18 +15,21 @@
config_file = "#{conf_dir}/litle.yml"
@@config = Properties.new(config_file)
@@config.parse!
@@test = @@config[:litle][:test]
+ @@logger.log_level = Logger::DEBUG if (@@config[:logger] || {})[:debug]
+
@@gateways = Killbill::Litle::Gateway.from_config(@@config[:litle])
if defined?(JRUBY_VERSION)
# See https://github.com/jruby/activerecord-jdbc-adapter/issues/302
require 'jdbc/mysql'
Jdbc::MySQL.load_driver(:require) if Jdbc::MySQL.respond_to?(:load_driver)
end
ActiveRecord::Base.establish_connection(@@config[:database])
+ ActiveRecord::Base.logger = @@logger
@@initialized = true
end
def self.gateway_for_currency(currency)