diff options
author | Robin Appelman <robin@icewind.nl> | 2022-05-09 16:56:40 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-04-05 14:52:19 +0200 |
commit | c6be96d04fb628466af7b444d31ea4703c9e1244 (patch) | |
tree | a26758bce3e64f078aef9a6915d26474d43513ad /lib/private/Files/ObjectStore | |
parent | a1b7f132c8a495fbf8fcce4612a9cd6b86d511d4 (diff) | |
download | nextcloud-server-c6be96d04fb628466af7b444d31ea4703c9e1244.tar.gz nextcloud-server-c6be96d04fb628466af7b444d31ea4703c9e1244.zip |
additional logging when mkdir fails for object storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index 4ca00cf6a16..31786876724 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -97,6 +97,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil 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: $path"); return false; } @@ -120,10 +121,12 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil if ($parentType === false) { if (!$this->mkdir($parent)) { // something went wrong + $this->logger->warning("Parent folder ($parent) doesn't exist and couldn't be created"); return false; } } elseif ($parentType === 'file') { // parent is a file + $this->logger->warning("Parent ($parent) is a file"); return false; } // finally create the new dir |