From bd6c60c5390a587a09135a4916b4091a033a64ac Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Mon, 15 May 2023 12:03:32 +0200 Subject: [PATCH] replaced old debug-log call with current one. --- CRM/Twingle/Upgrader/Base.php | 2 +- api/v3/TwingleDonation/Cancel.php | 2 +- api/v3/TwingleDonation/Endrecurring.php | 2 +- api/v3/TwingleDonation/Submit.php | 2 +- info.xml | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Twingle/Upgrader/Base.php b/CRM/Twingle/Upgrader/Base.php index 5f48218..07e9629 100644 --- a/CRM/Twingle/Upgrader/Base.php +++ b/CRM/Twingle/Upgrader/Base.php @@ -274,7 +274,7 @@ class CRM_Twingle_Upgrader_Base { $setting = new CRM_Core_BAO_Setting(); $setting->name = $this->extensionName . ':version'; $setting->delete(); - CRM_Core_Error::debug_log_message("Migrated extension schema revision ID for {$this->extensionName} from civicrm_setting (deprecated) to civicrm_extension.\n"); + Civi::log()->debug("Migrated extension schema revision ID for {$this->extensionName} from civicrm_setting (deprecated) to civicrm_extension.\n"); } } diff --git a/api/v3/TwingleDonation/Cancel.php b/api/v3/TwingleDonation/Cancel.php index e3dee49..e007059 100644 --- a/api/v3/TwingleDonation/Cancel.php +++ b/api/v3/TwingleDonation/Cancel.php @@ -67,7 +67,7 @@ function _civicrm_api3_twingle_donation_Cancel_spec(&$params) { 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)); + Civi::log()->debug('TwingleDonation.Cancel: ' . json_encode($params, JSON_PRETTY_PRINT)); } try { diff --git a/api/v3/TwingleDonation/Endrecurring.php b/api/v3/TwingleDonation/Endrecurring.php index 12c93c4..9daa59b 100644 --- a/api/v3/TwingleDonation/Endrecurring.php +++ b/api/v3/TwingleDonation/Endrecurring.php @@ -60,7 +60,7 @@ function _civicrm_api3_twingle_donation_endrecurring_spec(&$params) { 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)); + Civi::log()->debug('TwingleDonation.Endrecurring: ' . json_encode($params, JSON_PRETTY_PRINT)); } try { diff --git a/api/v3/TwingleDonation/Submit.php b/api/v3/TwingleDonation/Submit.php index 4e3e6dd..5579675 100644 --- a/api/v3/TwingleDonation/Submit.php +++ b/api/v3/TwingleDonation/Submit.php @@ -265,7 +265,7 @@ function _civicrm_api3_twingle_donation_Submit_spec(&$params) { 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)); + Civi::log()->debug('TwingleDonation.Submit: ' . json_encode($params, JSON_PRETTY_PRINT)); } try { diff --git a/info.xml b/info.xml index abcb061..6285f7b 100644 --- a/info.xml +++ b/info.xml @@ -18,7 +18,6 @@ 1.4-dev dev - 5.0 5.19