projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f985f8
)
log error message instead of throwing exception
author
yashodha
<yashodha@cividesk.com>
Tue, 24 Mar 2020 11:36:41 +0000
(17:06 +0530)
committer
yashodha
<yashodha@cividesk.com>
Tue, 24 Mar 2020 11:36:41 +0000
(17:06 +0530)
Civi/Token/TokenCompatSubscriber.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Token/TokenCompatSubscriber.php
b/Civi/Token/TokenCompatSubscriber.php
index 2b47388fcbd55a5c77a98094140e2e89057ddbce..45a81fb174bef59b4b1e954124f773e89ba90db5 100644
(file)
--- 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;
}