refact: improve the log on request timeout

This commit is contained in:
Felipe Andrada 2020-11-30 02:02:44 -03:00
commit 99138a617e

View file

@ -134,8 +134,8 @@ function getJson(url, cb) {
});
req.setTimeout(7000, function () {
console.log("Timeout. Retrying");
combineSegments(type, i, segmentsUrl, output, filename, downloadingFlag, cb)
log("⚠️", 'Timeout. Retrying');
combineSegments(type, i, segmentsUrl, output, filename, downloadingFlag, cb);
});
}
@ -154,4 +154,4 @@ function initJs(n = 0) {
});
}
initJs();
initJs();