better debugs

This commit is contained in:
Girish Ramakrishnan
2022-11-05 08:43:02 +01:00
parent aae52ec795
commit 8a5d4e2fb0
3 changed files with 7 additions and 7 deletions

View File

@@ -173,6 +173,8 @@ async function upload(backupConfig, remotePath, dataLayout, progressCallback) {
assert.strictEqual(typeof dataLayout, 'object');
assert.strictEqual(typeof progressCallback, 'function');
debug(`upload: Uploading ${dataLayout.toString()} to ${remotePath}`);
return new Promise((resolve, reject) => {
async.retry({ times: 5, interval: 20000 }, function (retryCallback) {
retryCallback = once(retryCallback); // protect again upload() erroring much later after tar stream error