summaryrefslogtreecommitdiff
path: root/lib/https.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2020-03-14 07:55:44 -0400
committerBrian White <mscdex@mscdex.net>2020-05-30 17:24:43 -0400
commitc24b74a7abec0848484671771d250cfd961f128e (patch)
tree1e4fec15ee4de3ab4bc483f759322389d71932ec /lib/https.js
parent3f32126fd554be32cb53a2458849697146145fda (diff)
downloadnode-new-c24b74a7abec0848484671771d250cfd961f128e.tar.gz
lib: improve debuglog() performance
PR-URL: https://github.com/nodejs/node/pull/32260 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/https.js')
-rw-r--r--lib/https.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/https.js b/lib/https.js
index 77d3a241eb..1d3a6e5024 100644
--- a/lib/https.js
+++ b/lib/https.js
@@ -37,7 +37,9 @@ const {
kServerResponse
} = require('_http_server');
const { ClientRequest } = require('_http_client');
-const debug = require('internal/util/debuglog').debuglog('https');
+let debug = require('internal/util/debuglog').debuglog('https', (fn) => {
+ debug = fn;
+});
const { URL, urlToOptions, searchParamsSymbol } = require('internal/url');
const { IncomingMessage, ServerResponse } = require('http');
const { kIncomingMessage } = require('_http_common');