From: Chris Sharp Date: Mon, 28 Feb 2022 16:05:29 +0000 (-0500) Subject: alter logging to learn more about stripe failures X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ddab34d0435ef15b81c93fa543106d87e4a19a42;p=evergreen%2Fpines.git alter logging to learn more about stripe failures --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm index 4163cf0218..59b6393506 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm @@ -105,7 +105,7 @@ sub process_stripe_or_bop_payment { my $stripe = Business::Stripe->new(-api_key => $psettings->{secretkey}); $stripe->api('post','payment_intents/' . $cc_args->{stripe_payment_intent}); if ($stripe->success) { - $logger->debug('Stripe payment intent retrieved'); + $logger->info('Stripe payment intent retrieved'); my $intent = $stripe->success; if ($intent->{status} eq 'succeeded') { $logger->info('Stripe payment succeeded'); @@ -127,7 +127,7 @@ sub process_stripe_or_bop_payment { ); } } else { - $logger->debug('Stripe payment intent not retrieved'); + $logger->info('Stripe payment intent not retrieved'); $logger->info('Stripe payment failed'); return OpenILS::Event->new( "CREDIT_PROCESSOR_DECLINED_TRANSACTION",