From ab66c8cb81a6221e5330f5ffed27db27995b3638 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 9 Jan 2018 16:09:47 -0800 Subject: [PATCH] debug the zoneName in waitForDns --- src/dns/waitfordns.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dns/waitfordns.js b/src/dns/waitfordns.js index 5d1a3287d..3342c4148 100644 --- a/src/dns/waitfordns.js +++ b/src/dns/waitfordns.js @@ -56,7 +56,7 @@ function isChangeSynced(domain, value, type, nameserver, callback) { }, callback); }); - } +} // check if IP change has propagated to every nameserver function waitForDns(domain, zoneName, value, type, options, callback) { @@ -76,7 +76,7 @@ function waitForDns(domain, zoneName, value, type, options, callback) { var attempt = 1; async.retry(options, function (retryCallback) { - debug('waitForDNS: %s attempt %s.', domain, attempt++); + debug('waitForDNS: %s (zone: %s) attempt %s.', domain, zoneName, attempt++); dns.resolveNs(zoneName, function (error, nameservers) { if (error || !nameservers) return retryCallback(error || new DomainError(DomainError.EXTERNAL_ERROR, 'Unable to get nameservers')); @@ -88,10 +88,10 @@ function waitForDns(domain, zoneName, value, type, options, callback) { }); }); }, function retryDone(error) { - if (error) return callback(error); + if (error) return callback(error); debug('waitForDNS: %s done.', domain); callback(null); - }); + }); }