From e0ece06b26306a52b518ccc8d9c1ca32b6da3f82 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 21 Mar 2018 14:22:41 -0700 Subject: [PATCH] s3: improved copy logging --- src/storage/s3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/s3.js b/src/storage/s3.js index bfb7a4a51..888da94c2 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -390,12 +390,12 @@ function copy(apiConfig, oldFilePath, newFilePath) { total += objects.length; if (retryCount === 0) concurrency = Math.min(concurrency + 1, 10); else concurrency = Math.max(concurrency - 1, 5); - events.emit('progress', `${retryCount} errors so far. concurrency set to ${concurrency}`); + events.emit('progress', `Copying ${total-objects.length}-${total}. ${retryCount} errors so far. concurrency set to ${concurrency}`); retryCount = 0; async.eachLimit(objects, concurrency, copyFile.bind(null, s3), done); }, function (error) { - events.emit('progress', `Copied ${total} files`); + events.emit('progress', `Copied ${total} files with error: ${error}`); events.emit('done', error); });