mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #53276 from nextcloud/fix/log-failure-from-file-events
fix(files_versions): Log failure to compute node path
This commit is contained in:
commit
cbc573f787
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue