diff --git a/app/models/solidus_paypal_braintree/gateway.rb b/app/models/solidus_paypal_braintree/gateway.rb index f56cbd2f..700be864 100644 --- a/app/models/solidus_paypal_braintree/gateway.rb +++ b/app/models/solidus_paypal_braintree/gateway.rb @@ -53,7 +53,7 @@ def gateway_options merchant_id: preferred_merchant_id, public_key: preferred_public_key, private_key: preferred_private_key, - logger: Braintree::Configuration.logger.clone + logger: logger } end @@ -231,6 +231,12 @@ def reusable_sources(order) private + def logger + Braintree::Configuration.logger.clone.tap do |logger| + logger.level = Rails.logger.level + end + end + def dollars(cents) Money.new(cents).dollars end