lib/fintecture.rb in fintecture-0.1.1 vs lib/fintecture.rb in fintecture-0.1.2
- old
+ new
@@ -27,11 +27,11 @@
module Fintecture
@log_level = nil
@logger = nil
@environment = 'sandbox'
- ENVIRONMENTS = %w[sandbox production].freeze
+ ENVIRONMENTS = %w[local sandbox production].freeze
class << self
attr_accessor :app_id, :app_secret, :app_private_key
def environment=(environment)
@@ -75,6 +75,8 @@
def logger=(val)
@logger = val
end
end
-end
+end
+
+Fintecture.log_level = ENV["FINTECTURE_LOG"] unless ENV["FINTECTURE_LOG"].nil?
\ No newline at end of file