diff options
author | Simon L <szaimen@e.mail.de> | 2023-04-17 23:42:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 23:42:08 +0200 |
commit | 85c9e75f33c0c46bc33023d1f4af05f149d480c3 (patch) | |
tree | 1c286adeab02d5f79a4afb23e363fce3d6ed7405 | |
parent | 5cda8f0f45f1bc5261a08cf9014a3df11a5fd6a2 (diff) | |
parent | c6be96d04fb628466af7b444d31ea4703c9e1244 (diff) | |
download | nextcloud-server-85c9e75f33c0c46bc33023d1f4af05f149d480c3.tar.gz nextcloud-server-85c9e75f33c0c46bc33023d1f4af05f149d480c3.zip |
Merge pull request #32314 from nextcloud/object-mkdir-logging
additional logging when mkdir fails for object storage
-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 8ca5cf53d16..921c50fd958 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -98,6 +98,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; } @@ -121,10 +122,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 |