From 281dd91e6a27fe54c6c492e83d7b2edf5c1cec32 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Nov 2023 22:53:56 +0000 Subject: [PATCH 1/2] Issue 12504: Additional logging for mail notifications --- src/Navigation/Notifications/Repository/Notify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Navigation/Notifications/Repository/Notify.php b/src/Navigation/Notifications/Repository/Notify.php index 94466abdb2..b46d3905be 100644 --- a/src/Navigation/Notifications/Repository/Notify.php +++ b/src/Navigation/Notifications/Repository/Notify.php @@ -664,6 +664,8 @@ class Notify extends BaseRepository $email = $emailBuilder->build(); + $this->logger->debug('Send mail', $datarray); + // use the Emailer class to send the message return $this->emailer->send($email); } @@ -796,7 +798,7 @@ class Notify extends BaseRepository } } } - +// todo - check $msg = $this->notification->getMessageFromNotification($Notification); if (empty($msg)) { $this->logger->info('No notification message, quitting', ['uid' => $Notification->uid, 'id' => $Notification->id, 'type' => $Notification->type]); From f514c2caf04a82d234f7d01af84e9d2b20ed8f76 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Nov 2023 23:19:27 +0000 Subject: [PATCH 2/2] Test remark removed --- src/Navigation/Notifications/Repository/Notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Navigation/Notifications/Repository/Notify.php b/src/Navigation/Notifications/Repository/Notify.php index b46d3905be..b7bf818b52 100644 --- a/src/Navigation/Notifications/Repository/Notify.php +++ b/src/Navigation/Notifications/Repository/Notify.php @@ -798,7 +798,7 @@ class Notify extends BaseRepository } } } -// todo - check + $msg = $this->notification->getMessageFromNotification($Notification); if (empty($msg)) { $this->logger->info('No notification message, quitting', ['uid' => $Notification->uid, 'id' => $Notification->id, 'type' => $Notification->type]);