mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http2: forward debug message in debugStreamObj
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
committed by
Anna Henningsen
parent
d776992f1f
commit
2dff8ddafb
@@ -160,7 +160,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) {
|
||||
|
||||
@@ -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(), '');
|
||||
|
||||
Reference in New Issue
Block a user