Add hack to figure out the position in the queue

this helps us track the progress a bit in the logs
This commit is contained in:
Girish Ramakrishnan
2018-03-20 18:25:04 -07:00
parent ce33681c37
commit 7699f6721d
3 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ function sync(backupConfig, backupId, dataDir, callback) {
++retryCount;
debug(`${task.operation} ${task.path} try ${retryCount}`);
if (task.operation === 'add') {
setBackupProgress(`Adding ${task.path} try ${retryCount}`);
setBackupProgress(`Adding ${task.path} position ${task.position} try ${retryCount}`);
var stream = fs.createReadStream(path.join(dataDir, task.path));
stream.on('error', function (error) {
setBackupProgress(`read stream error for ${task.path}: ${error.message}`);