Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(files_versions): Log failure to compute node path
To avoid hidden bugs, add some debug logging when a node path cannot be
 computed from a received event, to have more information for debugging

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and backportbot[bot] committed Jul 3, 2025
commit efd9991e21d6bc6377bcfc3b589372c0bd4c34eb
18 changes: 18 additions & 0 deletions apps/files_versions/lib/Listener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,24 @@ private function getPathForNode(Node $node): ?string {
}
}

try {
$this->logger->debug('Failed to compute path for node', [
'node' => [
'path' => $node->getPath(),
'owner' => $owner,
'fileid' => $node->getId(),
'size' => $node->getSize(),
'mtime' => $node->getMTime(),
]
]);
} catch (NotFoundException) {
$this->logger->debug('Failed to compute path for node', [
'node' => [
'path' => $node->getPath(),
'owner' => $owner,
]
]);
}
return null;
}
}