Skip to content

Commit a4c4870

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

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
@@ -1876,8 +1876,11 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
18761876
foreach ($shares as $share) {
18771877
try {
18781878
$sharedPath = $share->getNode()->getPath();
1879-
} catch (NotFoundException) {
1879+
} catch (NotFoundException $e) {
18801880
// node is not found, ignoring
1881+
$this->logger->debug(
1882+
'Could not find the node linked to a share',
1883+
['app' => 'files', 'exception' => $e]);
18811884
continue;
18821885
}
18831886
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {

0 commit comments

Comments
 (0)