From a3a7370be0d6c713b6a0de39e977e7e91a226f44 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 14 Oct 2020 17:51:49 +0200 Subject: [PATCH] Add log --- registry/src/s3.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/registry/src/s3.ts b/registry/src/s3.ts index 384daca..aeb1f0e 100644 --- a/registry/src/s3.ts +++ b/registry/src/s3.ts @@ -17,12 +17,16 @@ if (!config.s3.secretKey) { throw new Error("Config is missing s3.secretKey!"); } -const bucket = new S3.S3Bucket({ +const s3config: S3.S3BucketConfig = { bucket: config.s3.bucket || "deno-registry", endpointURL: config.s3.endpoint, accessKeyID: config.s3.accessKey, secretKey: config.s3.secretKey, region: config?.s3?.region || "us-east-1", -}); +}; + +console.log("Bucket config:", s3config); + +const bucket = new S3.S3Bucket(s3config); export default bucket;