diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index abd9412a757c2d..4a4ab28e3e4af6 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -153,7 +153,7 @@ function debugStream(id, sessionType, message, ...args) { } function debugStreamObj(stream, message, ...args) { - debugStream(stream[kID], stream[kSession][kType], ...args); + debugStream(stream[kID], stream[kSession][kType], message, ...args); } function debugSession(sessionType, message, ...args) { diff --git a/test/parallel/test-http2-debug.js b/test/parallel/test-http2-debug.js index ad86e76ab75771..ce1873234e76ec 100644 --- a/test/parallel/test-http2-debug.js +++ b/test/parallel/test-http2-debug.js @@ -18,6 +18,10 @@ assert(stderr.match(/Http2Session client \(\d+\) handling data frame for stream stderr); assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session client \(\d+\)\] reading starting/), stderr); +assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session client \(\d+\)\] closed with code 0/), + stderr); +assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session server \(\d+\)\] closed with code 0/), + stderr); assert(stderr.match(/HttpStream \d+ \(\d+\) \[Http2Session server \(\d+\)\] tearing down stream/), stderr); assert.strictEqual(stdout.trim(), '');