diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 58ad741cbf2172..d3483fc44a34b2 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -1335,12 +1335,14 @@ function onConnectSecure() { this.destroy(verifyError); return; } else { - debug('client emit secureConnect'); + debug('client emit secureConnect. rejectUnauthorized: %s, ' + + 'authorizationError: %s', options.rejectUnauthorized, + this.authorizationError); this.emit('secureConnect'); } } else { this.authorized = true; - debug('client emit secureConnect'); + debug('client emit secureConnect. authorized:', this.authorized); this.emit('secureConnect'); }