v1.0.5 remove junk logging

这个提交包含在:
AJ ONeal 2018-04-24 11:56:46 -06:00
父节点 79e368d783
当前提交 10ab61e07e
共有 2 个文件被更改,包括 5 次插入7 次删除

10
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"));
});
}

查看文件

@ -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",