We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d964cd commit 0b9f11bCopy full SHA for 0b9f11b
lib/internal/http2/core.js
@@ -189,9 +189,10 @@ const { _connectionListener: httpConnectionListener } = http;
189
let debug = require('internal/util/debuglog').debuglog('http2', (fn) => {
190
debug = fn;
191
});
192
+const debugEnabled = debug.enabled;
193
194
function debugStream(id, sessionType, message, ...args) {
- if (!debug.enabled) {
195
+ if (!debugEnabled) {
196
return;
197
}
198
debug('Http2Stream %s [Http2Session %s]: ' + message,
0 commit comments