From: Chris Burgess Date: Wed, 1 Feb 2017 20:42:56 +0000 (+1300) Subject: CRM-19793: Log payment processor exception message to debug log. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=22f9da800e5c53509510c7e08af06528fcee6d6d;p=civicrm-core.git CRM-19793: Log payment processor exception message to debug log. --- 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}")); }