From 22f9da800e5c53509510c7e08af06528fcee6d6d Mon Sep 17 00:00:00 2001 From: Chris Burgess Date: Thu, 2 Feb 2017 09:42:56 +1300 Subject: [PATCH] CRM-19793: Log payment processor exception message to debug log. --- CRM/Event/Form/Registration/Confirm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 0a3c28f9e4..f0f653cced 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -1317,6 +1317,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { return array($result, $value); } catch (\Civi\Payment\Exception\PaymentProcessorException $e) { + Civi::log()->error('Payment processor exception: ' . $e->getMessage()); CRM_Core_Session::singleton()->setStatus($e->getMessage()); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/event/register', "id={$this->_eventId}")); } -- 2.25.1