You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/private/Notification/Manager.php
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -316,9 +316,8 @@ public function notify(INotification $notification): void {
316
316
$app->notify($notification);
317
317
} catch (IncompleteNotificationException) {
318
318
} catch (\InvalidArgumentException$e) {
319
-
// todo 33.0.0 Log as warning
320
319
// todo 39.0.0 Log as error
321
-
$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.');
320
+
$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.');
322
321
}
323
322
}
324
323
}
@@ -358,9 +357,8 @@ public function prepare(INotification $notification, string $languageCode): INot
358
357
} catch (UnknownNotificationException) {
359
358
continue;
360
359
} catch (\InvalidArgumentException$e) {
361
-
// todo 33.0.0 Log as warning
362
360
// todo 39.0.0 Log as error
363
-
$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.');
361
+
$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.');
364
362
continue;
365
363
}
366
364
@@ -432,9 +430,8 @@ public function dismissNotification(INotification $notification): void {
432
430
} catch (UnknownNotificationException) {
433
431
continue;
434
432
} catch (\InvalidArgumentException$e) {
435
-
// todo 33.0.0 Log as warning
436
433
// todo 39.0.0 Log as error
437
-
$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.');
434
+
$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.');
0 commit comments