pass debug to promise-retry
This commit is contained in:
+2
-3
@@ -38,9 +38,8 @@ async function downloadUrl(url, file) {
|
||||
|
||||
safe.fs.unlinkSync(file);
|
||||
|
||||
let retryCount = 0;
|
||||
await promiseRetry({ times: 10, interval: 5000 }, async function () {
|
||||
debug(`Downloading ${url} to ${file}. Try ${++retryCount}`);
|
||||
await promiseRetry({ times: 10, interval: 5000, debug }, async function () {
|
||||
debug(`Downloading ${url} to ${file}`);
|
||||
|
||||
const args = `-s --fail ${url} -o ${file}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user