Skip to content
Merged
Changes from all commits
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
fix: log ignored workspace propfind exceptions at debug
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored and backportbot[bot] committed Nov 21, 2024
commit 0b28aeaf7fed8facdceb941054bbb67037c1e54e
7 changes: 5 additions & 2 deletions lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ public function propFind(PropFind $propFind, INode $node) {
try {
$cachedContent = $file->getContent();
$cache->set($cacheKey, $cachedContent, 3600);
} catch (GenericFileException|NotPermittedException|LockedException) {
// Ignore
} catch (GenericFileException|NotPermittedException|LockedException $e) {
// Ignore but log when debugging
$this->logger->debug($e->getMessage(), [
'exception' => $e,
]);
} catch (Exception $e) {
$this->logger->error($e->getMessage(), [
'exception' => $e,
Expand Down
Loading