log error message instead of throwing exception
authoryashodha <yashodha@cividesk.com>
Tue, 24 Mar 2020 11:36:41 +0000 (17:06 +0530)
committeryashodha <yashodha@cividesk.com>
Tue, 24 Mar 2020 11:36:41 +0000 (17:06 +0530)
Civi/Token/TokenCompatSubscriber.php

index 2b47388fcbd55a5c77a98094140e2e89057ddbce..45a81fb174bef59b4b1e954124f773e89ba90db5 100644 (file)
@@ -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;
         }