CRM-19793: Log payment processor exception message to debug log.
authorChris Burgess <chris@giantrobot.co.nz>
Wed, 1 Feb 2017 20:42:56 +0000 (09:42 +1300)
committerChris Burgess <chris@giantrobot.co.nz>
Wed, 1 Feb 2017 20:42:56 +0000 (09:42 +1300)
CRM/Event/Form/Registration/Confirm.php

index 0a3c28f9e4e9b27eae28d6882719c85ed1dedb64..f0f653cced72daf4a79b62b7e5c946f427257843 100644 (file)
@@ -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}"));
     }