From fd679e201877d8afc70bf6c6286e937dd63f070e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 20 Feb 2024 16:03:42 +0100 Subject: [PATCH] fix(notifications): Help finding missing notifications by logging it Signed-off-by: Joas Schilling --- lib/private/Notification/Manager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index c712d2754e258..348ddb03df92c 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -366,6 +366,7 @@ public function prepare(INotification $notification, string $languageCode): INot } if (!$notification->isValidParsed()) { + $this->logger->info('Notification was not parsed by any notifier [app: ' . $notification->getApp() . ', subject: ' . $notification->getSubject() . ']'); throw new \InvalidArgumentException('The given notification has not been handled'); }