feat: log more errors while s3
This commit is contained in:
parent
0f2b522b24
commit
16421d5c9a
@ -11,6 +11,7 @@ const minioClient = new Client({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export async function putObject(fileName: string, content: Buffer, metadata: ItemBucketMetadata = {}) {
|
export async function putObject(fileName: string, content: Buffer, metadata: ItemBucketMetadata = {}) {
|
||||||
|
console.log("Uploading", { fileName, metadata });
|
||||||
try {
|
try {
|
||||||
const res = await minioClient.putObject(S3_BUCKET_NAME, fileName, content, metadata);
|
const res = await minioClient.putObject(S3_BUCKET_NAME, fileName, content, metadata);
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user