Log API calls.
This commit is contained in:
parent
2f4358c1b4
commit
fac3fe839c
3 changed files with 15 additions and 0 deletions
|
@ -65,6 +65,11 @@ function _civicrm_api3_twingle_donation_Cancel_spec(&$params) {
|
|||
* @see civicrm_api3_create_error
|
||||
*/
|
||||
function civicrm_api3_twingle_donation_Cancel($params) {
|
||||
// Log call if debugging is enabled within civicrm.settings.php.
|
||||
if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) {
|
||||
CRM_Core_Error::debug_log_message('TwingleDonation.Cancel: ' . json_encode($params, JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
try {
|
||||
// Validate date for parameter "cancelled_at".
|
||||
if (!DateTime::createFromFormat('Ymd', $params['cancelled_at'])) {
|
||||
|
|
|
@ -58,6 +58,11 @@ function _civicrm_api3_twingle_donation_EndRecurring_spec(&$params) {
|
|||
* @see civicrm_api3_create_error
|
||||
*/
|
||||
function civicrm_api3_twingle_donation_EndRecurring($params) {
|
||||
// Log call if debugging is enabled within civicrm.settings.php.
|
||||
if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) {
|
||||
CRM_Core_Error::debug_log_message('TwingleDonation.EndRecurring: ' . json_encode($params, JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
try {
|
||||
// Validate date for parameter "ended_at".
|
||||
if (!DateTime::createFromFormat('Ymd', $params['ended_at'])) {
|
||||
|
|
|
@ -235,6 +235,11 @@ function _civicrm_api3_twingle_donation_Submit_spec(&$params) {
|
|||
* @see civicrm_api3_create_error
|
||||
*/
|
||||
function civicrm_api3_twingle_donation_Submit($params) {
|
||||
// Log call if debugging is enabled within civicrm.settings.php.
|
||||
if (defined('TWINGLE_API_LOGGING') && TWINGLE_API_LOGGING) {
|
||||
CRM_Core_Error::debug_log_message('TwingleDonation.Submit: ' . json_encode($params, JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
try {
|
||||
// Copy submitted parameters.
|
||||
$original_params = $params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue