dump the body for debugging

This commit is contained in:
Girish Ramakrishnan
2016-10-11 19:29:23 -07:00
parent c54a825eb8
commit c12ee50b3b

View File

@@ -269,7 +269,7 @@ Acme.prototype.waitForChallenge = function (challenge, callback) {
return retryCallback(new AcmeError(AcmeError.EXTERNAL_ERROR, 'Bad response code:' + result.statusCode));
}
debug('waitForChallenge: status is "%s"', result.body.status);
debug('waitForChallenge: status is "%s %j', result.body.status, result.body);
if (result.body.status === 'pending') return retryCallback(new AcmeError(AcmeError.NOT_COMPLETED));
else if (result.body.status === 'valid') return retryCallback();