From 290251a1b016ce4b5e4dd75e35caf280a05bd69d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 24 Apr 2018 11:56:46 -0600 Subject: [PATCH] v1.0.5 remove junk logging --- node.js | 10 ++++------ package.json | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/node.js b/node.js index e3f0ecf..14800d2 100644 --- a/node.js +++ b/node.js @@ -309,8 +309,6 @@ ACME._postChallenge = function (me, options, identifier, ch) { if (me.debug) console.debug('\n[DEBUG] statusChallenge\n'); return me._request({ method: 'GET', url: ch.url, json: true }).then(function (resp) { - console.error('poll: resp.body:'); - console.error(resp.body); if ('processing' === resp.body.status) { if (me.debug) console.debug('poll: again'); @@ -342,16 +340,16 @@ ACME._postChallenge = function (me, options, identifier, ch) { } if (!resp.body.status) { - console.error("[acme-v2] (y) bad challenge state:"); + console.error("[acme-v2] (E_STATE_EMPTY) empty challenge state:"); } else if ('invalid' === resp.body.status) { - console.error("[acme-v2] (x) invalid challenge state:"); + console.error("[acme-v2] (E_STATE_INVALID) invalid challenge state:"); } else { - console.error("[acme-v2] (z) bad challenge state:"); + console.error("[acme-v2] (E_STATE_UKN) unkown challenge state:"); } - return Promise.reject(new Error("[acme-v2] bad challenge state")); + return Promise.reject(new Error("[acme-v2] challenge state error")); }); } diff --git a/package.json b/package.json index b906549..bc4cfc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "acme-v2", - "version": "1.0.4", + "version": "1.0.5", "description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js", "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", "main": "node.js",