Issue 12504: Additional logging for mail notifications

This commit is contained in:
Michael 2023-11-25 22:53:56 +00:00
parent 56cfc57641
commit 281dd91e6a

View File

@ -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]);