Skip to content

Commit 02f23d5

Browse files
committed
fix: Log missing nodes of shares at debug level
Signed-off-by: Côme Chilliet <[email protected]>
1 parent cc5795b commit 02f23d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/private/Files/View.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,8 +1888,11 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
18881888
foreach ($shares as $share) {
18891889
try {
18901890
$sharedPath = $share->getNode()->getPath();
1891-
} catch (NotFoundException) {
1891+
} catch (NotFoundException $e) {
18921892
// node is not found, ignoring
1893+
$this->logger->debug(
1894+
'Could not find the node linked to a share',
1895+
['app' => 'files', 'exception' => $e]);
18931896
continue;
18941897
}
18951898
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {

0 commit comments

Comments
 (0)