Skip to content

Commit 232e697

Browse files
committed
Prevent log expired subscription
1 parent 5cb4009 commit 232e697

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ReportHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ public function handleReport($report, $subscription, $message)
2020
return;
2121
}
2222

23-
Log::warning("Notification failed to sent for subscription {$subscription->endpoint}: {$report->getReason()}");
24-
2523
if ($report->isSubscriptionExpired()) {
2624
$subscription->delete();
25+
26+
return;
2727
}
28+
Log::warning("Notification failed to sent for subscription {$subscription->endpoint}: {$report->getReason()}");
2829
}
2930
}

0 commit comments

Comments
 (0)