Merge pull request #53276 from nextcloud/fix/log-failure-from-file-events

fix(files_versions): Log failure to compute node path
pull/53764/head
Arthur Schiwon 2025-07-03 09:45:37 +07:00 committed by GitHub
commit cbc573f787
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

@ -12,6 +12,7 @@ use OC\DB\Exceptions\DbalException;
use OC\Files\Filesystem;
use OC\Files\Mount\MoveableMount;
use OC\Files\Node\NonExistingFile;
use OC\Files\Node\NonExistingFolder;
use OC\Files\View;
use OCA\Files_Versions\Storage;
use OCA\Files_Versions\Versions\INeedSyncVersionBackend;
@ -402,6 +403,24 @@ class FileEventsListener implements IEventListener {
}
}
if (!($node instanceof NonExistingFile) && !($node instanceof NonExistingFolder)) {
$this->logger->debug('Failed to compute path for node', [
'node' => [
'path' => $node->getPath(),
'owner' => $owner,
'fileid' => $node->getId(),
'size' => $node->getSize(),
'mtime' => $node->getMTime(),
]
]);
} else {
$this->logger->debug('Failed to compute path for node', [
'node' => [
'path' => $node->getPath(),
'owner' => $owner,
]
]);
}
return null;
}
}