pass debug to promise-retry
This commit is contained in:
+2
-2
@@ -207,7 +207,7 @@ async function registerLocations(locations, options, progressCallback) {
|
||||
const ip = await sysinfo.getServerIp();
|
||||
|
||||
for (const location of locations) {
|
||||
const error = await promiseRetry({ times: 200, interval: 5000 }, async function () {
|
||||
const error = await promiseRetry({ times: 200, interval: 5000, debug }, async function () {
|
||||
progressCallback({ message: `Registering location: ${location.subdomain ? (location.subdomain + '.') : ''}${location.domain}` });
|
||||
|
||||
// get the current record before updating it
|
||||
@@ -243,7 +243,7 @@ async function unregisterLocations(locations, progressCallback) {
|
||||
const ip = await sysinfo.getServerIp();
|
||||
|
||||
for (const location of locations) {
|
||||
const error = await promiseRetry({ times: 30, interval: 5000 }, async function () {
|
||||
const error = await promiseRetry({ times: 30, interval: 5000, debug }, async function () {
|
||||
progressCallback({ message: `Unregistering location: ${location.subdomain ? (location.subdomain + '.') : ''}${location.domain}` });
|
||||
|
||||
const [error] = await safe(removeDnsRecords(location.subdomain, location.domain, 'A', [ ip ]));
|
||||
|
||||
Reference in New Issue
Block a user