1
0
Fork 0

fix notify error handling

This commit is contained in:
Jonathan Treffler 2024-08-18 17:35:45 +02:00
parent 200489ff9d
commit cd2ef9123c

View file

@ -63,7 +63,7 @@ class CalendarListener implements IEventListener {
$transport = $this->transportManager->getTransport($subscription->getTransport());
try {
$transport->notify($subscription->getUserId(), $collectionName, $subscription->getId());
} catch (Error $e) {
} catch (\Exception $e) {
$this->logger->error("transport " . $subscription->getTransport() . " failed to deliver notification to subscription " . $subscription->getId());
}
}