Skip to content

Commit 2dff8dd

Browse files
lundibundiaddaleax
authored andcommitted
http2: forward debug message in debugStreamObj
PR-URL: #30840 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
1 parent d776992 commit 2dff8dd

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
@@ -160,7 +160,7 @@ function debugStream(id, sessionType, message, ...args) {
160160
}
161161

162162
function debugStreamObj(stream, message, ...args) {
163-
debugStream(stream[kID], stream[kSession][kType], ...args);
163+
debugStream(stream[kID], stream[kSession][kType], message, ...args);
164164
}
165165

166166
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)