Move Stripe dev logger in the controller (#9887)
This commit is contained in:
parent
df9aa4c5ae
commit
ec4d373ea0
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
if Rails.env.development? && Stripe.api_key.present?
|
||||
Stripe.log_level = Stripe::LEVEL_INFO
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue