v1.0.5 remove junk logging
This commit is contained in:
		
							parent
							
								
									79e368d783
								
							
						
					
					
						commit
						10ab61e07e
					
				
							
								
								
									
										10
									
								
								node.js
									
									
									
									
									
								
							
							
						
						
									
										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",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user