Skip to content

Commit 5a29a94

Browse files
ZYSzystargos
authored andcommitted
http: reduce usage of public util
Backport-PR-URL: #26650 PR-URL: #26548 Refs: #26546 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 75c5d9c commit 5a29a94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/_http_agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
const net = require('net');
2525
const util = require('util');
2626
const EventEmitter = require('events');
27-
const debug = util.debuglog('http');
27+
const debug = require('internal/util/debuglog').debuglog('http');
2828
const { async_id_symbol } = require('internal/async_hooks').symbols;
2929

3030
// New Agent code.

lib/_http_common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const {
3636
readStop
3737
} = incoming;
3838

39-
const debug = require('util').debuglog('http');
39+
const debug = require('internal/util/debuglog').debuglog('http');
4040

4141
const kIncomingMessage = Symbol('IncomingMessage');
4242
const kOnHeaders = HTTPParser.kOnHeaders | 0;

0 commit comments

Comments
 (0)