From 9244610037d32193d65fe8698c280c3307f6a021 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 24 Mar 2020 17:06:41 +0530 Subject: [PATCH] log error message instead of throwing exception --- Civi/Token/TokenCompatSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1