From: Mathieu Lutfy Date: Mon, 27 Mar 2023 16:08:57 +0000 (-0400) Subject: Log sending of Scheduled Reminders X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=380e459467846efe5c03504d5fbac6076b8fddee;p=civicrm-core.git Log sending of Scheduled Reminders They are a pain to debug when they fail because of errors with smarty or tokens --- diff --git a/CRM/Core/BAO/ActionSchedule.php b/CRM/Core/BAO/ActionSchedule.php index c63492d147..dbbeeac111 100644 --- a/CRM/Core/BAO/ActionSchedule.php +++ b/CRM/Core/BAO/ActionSchedule.php @@ -252,6 +252,10 @@ FROM civicrm_action_schedule cas [1 => [$actionSchedule->id, 'Integer']] ); + if ($dao->N > 0) { + Civi::log()->info("Sending Scheduled Reminder {$actionSchedule->id} to {$dao->N} recipients"); + } + $multilingual = CRM_Core_I18n::isMultilingual(); $tokenProcessor = self::createTokenProcessor($actionSchedule, $mapping); while ($dao->fetch()) {