From 0b28aeaf7fed8facdceb941054bbb67037c1e54e Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 21 Nov 2024 08:53:16 -0500 Subject: [PATCH] fix: log ignored workspace propfind exceptions at debug Signed-off-by: Josh --- lib/DAV/WorkspacePlugin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 2ca5f76a610..2333c7f58fa 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -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,