| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0783663 commit 1f4f811
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,10 +190,10 @@ let debug = require('internal/util/debuglog').debuglog('http2', (fn) => { | |||
| 190 | 190 | debug = fn; | |
| 191 | 191 | }); | |
| 192 | 192 | ||
| 193 | - // TODO(addaleax): See if this can be made more efficient by figuring out | ||
| 194 | - // whether debugging is enabled before we perform any further steps. Currently, | ||
| 195 | - // this seems pretty fast, though. | ||
| 196 | 193 | function debugStream(id, sessionType, message, ...args) { | |
| 194 | + if (!debug.enabled) { | ||
| 195 | + return; | ||
| 196 | + } | ||
| 197 | 197 | debug('Http2Stream %s [Http2Session %s]: ' + message, | |
| 198 | 198 | id, sessionName(sessionType), ...new SafeArrayIterator(args)); | |
| 199 | 199 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments