Skip to content

Commit cecdd0a

Browse files
Merge pull request #29 from fuzionnz/28-debug_log_failures
Report errors to CiviCRM debug log
2 parents 227a108 + b65ea56 commit cecdd0a

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)