From 3a8f11b1ba486edc337cfa77f50c4a25454d73c0 Mon Sep 17 00:00:00 2001 From: Olli Vanhoja Date: Fri, 9 Dec 2016 16:44:05 +0200 Subject: [PATCH] alias set --debug: Only print nameservers if we fetched them (#166) --- lib/alias.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/alias.js b/lib/alias.js index 6c05a8c..c4ba92f 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -133,7 +133,11 @@ export default class Alias extends Now { let skipDNSVerification = false if (this._debug) { - console.log(`> [debug] Found domain ${domain} and nameservers ${nameservers}`) + if (domainInfo) { + console.log(`> [debug] Found domain ${domain} with verified:${domainInfo.verified}`) + } else { + console.log(`> [debug] Found domain ${domain} and nameservers ${nameservers}`) + } } if (!usingZeitWorld && domainInfo) {