Skip to content

Commit d9a1829

Browse files
committed
Fix 500 errors not being logged.
1 parent e378701 commit d9a1829

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ExpoChannel.php

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function send($notifiable, Notification $notification)
5555
true
5656
);
5757
} catch (ExpoException $e) {
58+
report($e);
5859
$this->events->dispatch(
5960
new NotificationFailed($notifiable, $notification, 'expo-push-notifications', $e->getMessage())
6061
);

src/Http/ExpoController.php

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function subscribe(Request $request)
5555
try {
5656
$this->expoChannel->expo->subscribe($interest, $token);
5757
} catch (\Exception $e) {
58+
report($e);
5859
return JsonResponse::create([
5960
'status' => 'failed',
6061
'error' => [
@@ -98,6 +99,7 @@ public function unsubscribe(Request $request)
9899
try {
99100
$deleted = $this->expoChannel->expo->unsubscribe($interest, $token);
100101
} catch (\Exception $e) {
102+
report($e);
101103
return JsonResponse::create([
102104
'status' => 'failed',
103105
'error' => [

0 commit comments

Comments
 (0)