From: yashodha Date: Tue, 24 Mar 2020 11:36:41 +0000 (+0530) Subject: log error message instead of throwing exception X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9244610037d32193d65fe8698c280c3307f6a021;p=civicrm-core.git log error message instead of throwing exception --- diff --git a/Civi/Token/TokenCompatSubscriber.php b/Civi/Token/TokenCompatSubscriber.php index 2b47388fcb..45a81fb174 100644 --- a/Civi/Token/TokenCompatSubscriber.php +++ b/Civi/Token/TokenCompatSubscriber.php @@ -63,7 +63,7 @@ class TokenCompatSubscriber implements EventSubscriberInterface { $contact = reset($contact); if (!$contact || is_a($contact, 'CRM_Core_Error')) { // FIXME: Need to differentiate errors which kill the batch vs the individual row. - CRM_Core_Error::debug_log_message("Failed to generate token data. Invalid contact ID: " . $row->context['contactId']); + \Civi::log()->debug("Failed to generate token data. Invalid contact ID: " . $row->context['contactId']); continue; }