File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ const assert = require('internal/assert');
46
46
const { once } = require ( 'internal/util' ) ;
47
47
const {
48
48
_checkIsHttpToken : checkIsHttpToken ,
49
- debug,
50
49
freeParser,
51
50
parsers,
52
51
HTTPParser,
@@ -78,6 +77,10 @@ const {
78
77
79
78
const { addAbortSignal, finished } = require ( 'stream' ) ;
80
79
80
+ let debug = require ( 'internal/util/debuglog' ) . debuglog ( 'http' , ( fn ) => {
81
+ debug = fn ;
82
+ } ) ;
83
+
81
84
const INVALID_PATH_REGEX = / [ ^ \u0021 - \u00ff ] / ;
82
85
const kError = Symbol ( 'kError' ) ;
83
86
Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ module.exports = {
269
269
chunkExpression : / (?: ^ | \W ) c h u n k e d (?: $ | \W ) / i,
270
270
continueExpression : / (?: ^ | \W ) 1 0 0 - c o n t i n u e (?: $ | \W ) / i,
271
271
CRLF : '\r\n' ,
272
- debug,
273
272
freeParser,
274
273
methods,
275
274
parsers,
Original file line number Diff line number Diff line change @@ -79,8 +79,12 @@ const {
79
79
const { validateString } = require ( 'internal/validators' ) ;
80
80
const { isUint8Array } = require ( 'internal/util/types' ) ;
81
81
82
+ let debug = require ( 'internal/util/debuglog' ) . debuglog ( 'http' , ( fn ) => {
83
+ debug = fn ;
84
+ } ) ;
85
+
82
86
const HIGH_WATER_MARK = getDefaultHighWaterMark ( ) ;
83
- const { CRLF , debug } = common ;
87
+ const { CRLF } = common ;
84
88
85
89
const kCorked = Symbol ( 'corked' ) ;
86
90
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ const assert = require('internal/assert');
45
45
const {
46
46
parsers,
47
47
freeParser,
48
- debug,
49
48
CRLF ,
50
49
continueExpression,
51
50
chunkExpression,
@@ -91,6 +90,10 @@ const {
91
90
} = require ( 'internal/dtrace' ) ;
92
91
const { setTimeout, clearTimeout } = require ( 'timers' ) ;
93
92
93
+ let debug = require ( 'internal/util/debuglog' ) . debuglog ( 'http' , ( fn ) => {
94
+ debug = fn ;
95
+ } ) ;
96
+
94
97
const dc = require ( 'diagnostics_channel' ) ;
95
98
const onRequestStartChannel = dc . channel ( 'http.server.request.start' ) ;
96
99
const onResponseFinishChannel = dc . channel ( 'http.server.response.finish' ) ;
You can’t perform that action at this time.
0 commit comments