diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-04-05 21:44:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 21:44:48 +0200 |
commit | bbc4c6036a9cad0458ef4b426974962375701947 (patch) | |
tree | 183ea67c204e9eea62068ed89c33f43f304bbded /lib | |
parent | 6ea444b24387e9b516a44000df0db0f6af786f95 (diff) | |
parent | 2f068bc9d191b8bd992cec6f20cf415c7df63c3d (diff) | |
download | nextcloud-server-bbc4c6036a9cad0458ef4b426974962375701947.tar.gz nextcloud-server-bbc4c6036a9cad0458ef4b426974962375701947.zip |
Merge pull request #9092 from nextcloud/log-objectstorage-stuff
Add more logging for the object storage during creation of the buckets
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 8 |
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()); } } |