Skip to content

Commit 063d0ff

Browse files
come-ncnfebe
authored andcommitted
fix: Log missing nodes of shares at debug level
Signed-off-by: Côme Chilliet <[email protected]>
1 parent aeeea8c commit 063d0ff

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
@@ -1911,8 +1911,11 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
19111911
foreach ($shares as $share) {
19121912
try {
19131913
$sharedPath = $share->getNode()->getPath();
1914-
} catch (NotFoundException) {
1914+
} catch (NotFoundException $e) {
19151915
// node is not found, ignoring
1916+
$this->logger->debug(
1917+
'Could not find the node linked to a share',
1918+
['app' => 'files', 'exception' => $e]);
19161919
continue;
19171920
}
19181921
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {

0 commit comments

Comments
 (0)