mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
fix: Log missing nodes of shares at debug level
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
8d64e076ee
commit
f453411d59
1 changed files with 4 additions and 1 deletions
|
|
@ -1885,8 +1885,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 . '/')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue