Skip to content

Commit 8d8c05d

Browse files
lundibunditargos
authored andcommitted
http2: forward debug message in debugStreamObj
PR-URL: #30840 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
1 parent 16283b8 commit 8d8c05d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/internal/http2/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function debugStream(id, sessionType, message, ...args) {
153153
}
154154

155155
function debugStreamObj(stream, message, ...args) {
156-
debugStream(stream[kID], stream[kSession][kType], ...args);
156+
debugStream(stream[kID], stream[kSession][kType], message, ...args);
157157
}
158158

159159
function debugSession(sessionType, message, ...args) {

test/parallel/test-http2-debug.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ assert(stderr.match(/Http2Session client \(\d+\) handling data frame for stream
1818
stderr);
1919
assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session client \(\d+\)\] reading starting/),
2020
stderr);
21+
assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session client \(\d+\)\] closed with code 0/),
22+
stderr);
23+
assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session server \(\d+\)\] closed with code 0/),
24+
stderr);
2125
assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session server \(\d+\)\] tearing down stream/),
2226
stderr);
2327
assert.strictEqual(stdout.trim(), '');

0 commit comments

Comments
 (0)