Skip to content

Commit 182c73b

Browse files
committed
http2: switch to new runtime-controlled debugging system
Remove `--debug-http2` as a compile-time feature and make all debug statements available using `NODE_DEBUG_NATIVE=http2` at runtime. This probably makes the debugging-enabled case a bit slower due to additional string concatenations, but switching to a runtime-checking system makes debugging more flexible and can be applied more easily to other parts of the source code as well. PR-URL: #20987 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 45eeea4 commit 182c73b

File tree

6 files changed

+115
-154
lines changed

6 files changed

+115
-154
lines changed

configure

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,6 @@ parser.add_option('--debug-lib',
443443
dest='node_debug_lib',
444444
help='build lib with DCHECK macros')
445445

446-
http2_optgroup.add_option('--debug-http2',
447-
action='store_true',
448-
dest='debug_http2',
449-
help='build with http2 debug statements on (default is false)')
450-
451446
http2_optgroup.add_option('--debug-nghttp2',
452447
action='store_true',
453448
dest='debug_nghttp2',
@@ -970,11 +965,6 @@ def configure_node(o):
970965

971966
o['variables']['node_debug_lib'] = b(options.node_debug_lib)
972967

973-
if options.debug_http2:
974-
o['variables']['debug_http2'] = 1
975-
else:
976-
o['variables']['debug_http2'] = 'false'
977-
978968
if options.debug_nghttp2:
979969
o['variables']['debug_nghttp2'] = 1
980970
else:

node.gypi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@
9090
'NODE_RELEASE_URLBASE="<(node_release_urlbase)"',
9191
]
9292
}],
93-
[
94-
'debug_http2==1', {
95-
'defines': [ 'NODE_DEBUG_HTTP2=1' ]
96-
}],
9793
[ 'v8_enable_i18n_support==1', {
9894
'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
9995
'dependencies': [

0 commit comments

Comments
 (0)