Move Stripe dev logger in the controller (#9887)

This commit is contained in:
rhymes 2020-08-20 15:38:54 +02:00 committed by GitHub
parent df9aa4c5ae
commit ec4d373ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -129,5 +129,9 @@ class ApplicationController < ActionController::Base
def initialize_stripe
Stripe.api_key = SiteConfig.stripe_api_key
return unless Rails.env.development? && Stripe.api_key.present?
Stripe.log_level = Stripe::LEVEL_INFO
end
end

View file

@ -1,3 +0,0 @@
if Rails.env.development? && Stripe.api_key.present?
Stripe.log_level = Stripe::LEVEL_INFO
end