From 04441b506bac9fa43d96378863fa1fcc5d27a2a2 Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Sun, 10 Mar 2019 00:06:48 +0800 Subject: [PATCH] http: reduce usage of public util Backport-PR-URL: https://github.com/nodejs/node/pull/26650 PR-URL: https://github.com/nodejs/node/pull/26548 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- lib/_http_agent.js | 2 +- lib/_http_common.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 8632da45726514..65a538f3c8684a 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -24,7 +24,7 @@ const net = require('net'); const util = require('util'); const EventEmitter = require('events'); -const debug = util.debuglog('http'); +const debug = require('internal/util/debuglog').debuglog('http'); const { async_id_symbol } = require('internal/async_hooks').symbols; // New Agent code. diff --git a/lib/_http_common.js b/lib/_http_common.js index a83c82c9d4b292..bf885161571be1 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -36,7 +36,7 @@ const { readStop } = incoming; -const debug = require('util').debuglog('http'); +const debug = require('internal/util/debuglog').debuglog('http'); const kIncomingMessage = Symbol('IncomingMessage'); const kOnHeaders = HTTPParser.kOnHeaders | 0;