diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-05 17:26:09 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-05 17:29:44 +0200 |
commit | bb656750f577d5350f48e02e5d1d3eeb492f6f98 (patch) | |
tree | 377aefdc165618ebba1ec2b493b43b625208fd96 /lib | |
parent | 1c891a5c908283102dfba94a43967f8b1285c6d5 (diff) | |
download | nextcloud-server-bb656750f577d5350f48e02e5d1d3eeb492f6f98.tar.gz nextcloud-server-bb656750f577d5350f48e02e5d1d3eeb492f6f98.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')
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index d4910834962..a3664f71ade 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -104,13 +104,14 @@ trait S3ConnectionTrait { if (!$this->connection->doesBucketExist($this->bucket)) { try { + \OC::$server->getLogger()->info('Bucket "' . $this->bucket . '" does not exist - creating it.', ['app' => 'objectstore']); $this->connection->createBucket(array( 'Bucket' => $this->bucket )); $this->testTimeout(); } catch (S3Exception $e) { - \OCP\Util::logException('files_external', $e); - throw new \Exception('Creation of bucket failed. ' . $e->getMessage()); + \OCP\Util::logException('objectstore', $e); + throw new \Exception('Creation of bucket "' . $this->bucket . '" failed. ' . $e->getMessage()); } } |