From 8458bcf6ca4f7ec2d076435ab0f9f197165a286d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 9 May 2022 16:56:40 +0200 Subject: [PATCH] additional logging when mkdir fails for object storage Signed-off-by: Robin Appelman --- lib/private/Files/ObjectStore/ObjectStoreStorage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index adb3928b28ab4..81070a00ea342 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -87,6 +87,7 @@ public function mkdir($path) { $path = $this->normalizePath($path); if ($this->file_exists($path)) { + $this->logger->warning("Tried to create an object store folder that already exists"); return false; } @@ -110,10 +111,12 @@ public function mkdir($path) { if ($parentType === false) { if (!$this->mkdir($parent)) { // something went wrong + $this->logger->warning("Parent folder doesn't exist and couldn't be created"); return false; } } elseif ($parentType === 'file') { // parent is a file + $this->logger->warning("Parent is a file"); return false; } // finally create the new dir