Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-05-09 17:56:40 +0300
committerRobin Appelman <robin@icewind.nl>2022-05-09 17:56:40 +0300
commit8458bcf6ca4f7ec2d076435ab0f9f197165a286d (patch)
treece40bd2054d654497e5cdf84d75e1a510e300f1c
parent033d527debcd2d6f7370a6113614bf3da9d8c693 (diff)
additional logging when mkdir fails for object storageobject-mkdir-logging
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index adb3928b28a..81070a00ea3 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -87,6 +87,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
$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 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
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