From 02f23d566fa3f431d74ff2dce05a677f8b60177a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 2 Dec 2025 09:33:07 +0100 Subject: [PATCH] fix: Log missing nodes of shares at debug level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Files/View.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index c924ae1a5c0..fa7f5481640 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -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 . '/')) {