Skip to content

Commit

Permalink
additional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
itcon-pty-au authored Dec 12, 2024
1 parent d89e9ea commit e3d5611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ async function backupToS3() {
const s3 = new AWS.S3();

if (dataSize > chunkSize) {
console.log('Starting Multipart upload to S3');
const createMultipartParams = {
Bucket: bucketName,
Key: 'typingmind-backup.json',
Expand Down Expand Up @@ -946,6 +947,7 @@ async function backupToS3() {
};
await s3.completeMultipartUpload(completeParams).promise();
} else {
console.log('Starting standard upload to S3');
const putParams = {
Bucket: bucketName,
Key: 'typingmind-backup.json',
Expand Down

0 comments on commit e3d5611

Please sign in to comment.