Skip to content

Commit 4e732b8

Browse files
authored
Merge pull request #9094 from nextcloud/13-9092
[stable13] Add more logging for the object storage during creation of the buckets
2 parents 1c891a5 + bb65675 commit 4e732b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,14 @@ protected function getConnection() {
104104

105105
if (!$this->connection->doesBucketExist($this->bucket)) {
106106
try {
107+
\OC::$server->getLogger()->info('Bucket "' . $this->bucket . '" does not exist - creating it.', ['app' => 'objectstore']);
107108
$this->connection->createBucket(array(
108109
'Bucket' => $this->bucket
109110
));
110111
$this->testTimeout();
111112
} catch (S3Exception $e) {
112-
\OCP\Util::logException('files_external', $e);
113-
throw new \Exception('Creation of bucket failed. ' . $e->getMessage());
113+
\OCP\Util::logException('objectstore', $e);
114+
throw new \Exception('Creation of bucket "' . $this->bucket . '" failed. ' . $e->getMessage());
114115
}
115116
}
116117

0 commit comments

Comments
 (0)