fix: Log missing nodes of shares at debug level

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-12-02 09:33:07 +01:00 committed by Côme Chilliet
parent cc5795ba45
commit 02f23d566f

View file

@ -1888,8 +1888,11 @@ class View {
foreach ($shares as $share) {
try {
$sharedPath = $share->getNode()->getPath();
} catch (NotFoundException) {
} catch (NotFoundException $e) {
// node is not found, ignoring
$this->logger->debug(
'Could not find the node linked to a share',
['app' => 'files', 'exception' => $e]);
continue;
}
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {