Added logging for SMS

This commit is contained in:
Slim Amamou 2025-01-16 16:15:54 +01:00
parent 9cc381a709
commit a38d47809a

View file

@ -26,7 +26,9 @@ final class SmsNotifier
public function notify(User $user, string $subject): ?SentMessage
{
$this->logger->info('SMS Notification');
if (!$user->canBeNotifiedBySms()) {
$this->logger->warning('User cannot be notified by SMS');
return null;
}
@ -54,5 +56,6 @@ final class SmsNotifier
return null;
}
$this->logger->info('SMS Sent Successfully');
}
}