Skip to content

Commit ac8f529

Browse files
authored
Merge pull request #6675 from nextcloud/fix/workspace-exception-debug-logging
2 parents 94765c9 + 9df5c08 commit ac8f529

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/DAV/WorkspacePlugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ public function propFind(PropFind $propFind, INode $node) {
9999
try {
100100
$cachedContent = $file->getContent();
101101
$cache->set($cacheKey, $cachedContent, 3600);
102-
} catch (GenericFileException|NotPermittedException|LockedException) {
103-
// Ignore
102+
} catch (GenericFileException|NotPermittedException|LockedException $e) {
103+
// Ignore but log when debugging
104+
$this->logger->debug($e->getMessage(), [
105+
'exception' => $e,
106+
]);
104107
} catch (Exception $e) {
105108
$this->logger->error($e->getMessage(), [
106109
'exception' => $e,

0 commit comments

Comments
 (0)