Fixed: was not logging successful sms properly
This commit is contained in:
parent
7035adf5f3
commit
682c6bf375
1 changed files with 4 additions and 2 deletions
|
|
@ -46,10 +46,13 @@ final class SmsNotifier
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return $this->texter->send(new SmsMessage(
|
$response = $this->texter->send(new SmsMessage(
|
||||||
phone: $phoneNumber,
|
phone: $phoneNumber,
|
||||||
subject: $subject
|
subject: $subject
|
||||||
));
|
));
|
||||||
|
$this->logger->info('SMS Sent Successfully');
|
||||||
|
|
||||||
|
return $response;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// OK, the sms cannot be delivered, but this is not critical as the an
|
// OK, the sms cannot be delivered, but this is not critical as the an
|
||||||
// email is always sent
|
// email is always sent
|
||||||
|
|
@ -57,6 +60,5 @@ final class SmsNotifier
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$this->logger->info('SMS Sent Successfully');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue