Fixed: was not logging successful sms properly

This commit is contained in:
Slim Amamou 2025-01-16 17:03:22 +01:00
parent 7035adf5f3
commit 682c6bf375

View file

@ -46,10 +46,13 @@ final class SmsNotifier
}
try {
return $this->texter->send(new SmsMessage(
$response = $this->texter->send(new SmsMessage(
phone: $phoneNumber,
subject: $subject
));
$this->logger->info('SMS Sent Successfully');
return $response;
} catch (\Exception $e) {
// OK, the sms cannot be delivered, but this is not critical as the an
// email is always sent
@ -57,6 +60,5 @@ final class SmsNotifier
return null;
}
$this->logger->info('SMS Sent Successfully');
}
}