mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix(notifications): Progress deprecation of InvalidArgumentException
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
e9cd2fc830
commit
0f2c8b1dab
1 changed files with 3 additions and 6 deletions
|
|
@ -316,9 +316,8 @@ class Manager implements IManager {
|
|||
$app->notify($notification);
|
||||
} catch (IncompleteNotificationException) {
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
// todo 33.0.0 Log as warning
|
||||
// todo 39.0.0 Log as error
|
||||
$this->logger->debug(get_class($app) . '::notify() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\IncompleteNotificationException when the notification is incomplete for your app and otherwise handle all \InvalidArgumentException yourself.');
|
||||
$this->logger->warning(get_class($app) . '::notify() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\IncompleteNotificationException when the notification is incomplete for your app and otherwise handle all \InvalidArgumentException yourself.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -358,9 +357,8 @@ class Manager implements IManager {
|
|||
} catch (UnknownNotificationException) {
|
||||
continue;
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
// todo 33.0.0 Log as warning
|
||||
// todo 39.0.0 Log as error
|
||||
$this->logger->debug(get_class($notifier) . '::prepare() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\UnknownNotificationException when the notification is not known to your notifier and otherwise handle all \InvalidArgumentException yourself.');
|
||||
$this->logger->warning(get_class($notifier) . '::prepare() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\UnknownNotificationException when the notification is not known to your notifier and otherwise handle all \InvalidArgumentException yourself.');
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -449,9 +447,8 @@ class Manager implements IManager {
|
|||
} catch (UnknownNotificationException) {
|
||||
continue;
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
// todo 33.0.0 Log as warning
|
||||
// todo 39.0.0 Log as error
|
||||
$this->logger->debug(get_class($notifier) . '::dismissNotification() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\UnknownNotificationException when the notification is not known to your notifier and otherwise handle all \InvalidArgumentException yourself.');
|
||||
$this->logger->warning(get_class($notifier) . '::dismissNotification() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\UnknownNotificationException when the notification is not known to your notifier and otherwise handle all \InvalidArgumentException yourself.');
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue