Skip to content

Commit b65ea56

Browse files
committed
Report transaction failures to CiviCRM debug log as well as civicrm_system_log.
Refs #28
1 parent 227a108 commit b65ea56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CRM/Core/Payment/PaymentExtended.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ protected function handleError($level, $message, $context, $errorCode = 9001, $u
275275
// Reset gateway to NULL so don't cache it. The size of the object or closures within it could
276276
// cause problems when serializing & saving.
277277
$this->gateway = NULL;
278+
Civi::log()->log($level, $message, $context);
278279
$log = new CRM_Utils_SystemLogger();
279280
$log->log($level, $message, (array) $context);
280281
throw new \Civi\Payment\Exception\PaymentProcessorException($userMessage);

0 commit comments

Comments
 (0)