aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-05 17:26:09 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-05 17:26:09 +0200
commit2f068bc9d191b8bd992cec6f20cf415c7df63c3d (patch)
tree26caf7805fd6825b004ca13145c484548b7d8d4f /lib/private
parenta3a66859d3188458a6a2617ec81caa5a27c93556 (diff)
downloadnextcloud-server-2f068bc9d191b8bd992cec6f20cf415c7df63c3d.tar.gz
nextcloud-server-2f068bc9d191b8bd992cec6f20cf415c7df63c3d.zip
Add more logging for the object storage during creation of the buckets
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/ObjectStore/S3ConnectionTrait.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
index 188012b7c1f..2556180173a 100644
--- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
@@ -103,18 +103,20 @@ trait S3ConnectionTrait {
}
if (!$this->connection->doesBucketExist($this->bucket)) {
+ $logger = \OC::$server->getLogger();
try {
+ $logger->info('Bucket "' . $this->bucket . '" does not exist - creating it.', ['app' => 'objectstore']);
$this->connection->createBucket(array(
'Bucket' => $this->bucket
));
$this->testTimeout();
} catch (S3Exception $e) {
- \OC::$server->getLogger()->logException($e, [
+ $logger->logException($e, [
'message' => 'Invalid remote storage.',
'level' => \OCP\Util::DEBUG,
- 'app' => 'files_external',
+ 'app' => 'objectstore',
]);
- throw new \Exception('Creation of bucket failed. ' . $e->getMessage());
+ throw new \Exception('Creation of bucket "' . $this->bucket . '" failed. ' . $e->getMessage());
}
}