Skip to content

Commit

Permalink
Merge pull request #43691 from nextcloud/bugfix/noid/help-finding-mis…
Browse files Browse the repository at this point in the history
…sing-notifications

fix(notifications): Help finding missing notifications by logging it
  • Loading branch information
nickvergessen authored Feb 21, 2024
2 parents 5694809 + fd679e2 commit 07dbd3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Notification/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 07dbd3c

Please sign in to comment.