Skip to content

Commit

Permalink
change Debug-Level on Capture
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Dec 9, 2023
1 parent 591f80d commit 9cb788d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ public function doCapturePayPalOrder(
$this->displayErrorIfInstrumentDeclined($issue);
/** @var Config $payPalConfig */
$payPalConfig = oxNew(Config::class);
if ($payPalConfig->isLogLevel('error')) {
$this->moduleLogger->error($exception->getMessage(), [$exception]);
if ($payPalConfig->isLogLevel('debug')) {
$this->moduleLogger->debug($exception->getMessage(), [$exception]);
}
throw oxNew(StandardException::class, 'OSC_PAYPAL_ORDEREXECUTION_ERROR');
}
Expand Down

0 comments on commit 9cb788d

Please sign in to comment.