From 1b1757f638cb5c210c94d4a8f3d188cd4c00085d Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Sat, 7 Dec 2019 18:22:52 +0200 Subject: [PATCH 1/2] http2: forward debug message in debugStreamObj --- lib/internal/http2/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 167044f8408fee..0825895646f715 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -159,7 +159,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) { From a0bdaa1976415970463548bcf85e05cd59b11c4a Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Sun, 8 Dec 2019 13:33:06 +0200 Subject: [PATCH 2/2] fixup! http2: forward debug message in debugStreamObj --- test/parallel/test-http2-debug.js | 4 ++++ 1 file changed, 4 insertions(+) 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(), '');