diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-04 02:27:57 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-04 02:41:58 +0300 |
commit | e4dd5cd6fd7b44f4fc21a5cfd39615a7a5833957 (patch) | |
tree | 6c836c9aa1a1161fe73b46b5fbe6abab1c29517d /lib/http.js | |
parent | d040f1d19d17e056223ab3de0e58ed470c8b9f52 (diff) |
NODE_DEBUG uses strings instead of bitflags
Diffstat (limited to 'lib/http.js')
-rw-r--r-- | lib/http.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.js b/lib/http.js index 0b4a0e2212f..5594a8ff1c4 100644 --- a/lib/http.js +++ b/lib/http.js @@ -6,8 +6,7 @@ var HTTPParser = process.binding('http_parser').HTTPParser; var debug; -var debugLevel = parseInt(process.env.NODE_DEBUG, 16); -if (debugLevel & 0x4) { +if (process.env.NODE_DEBUG && /http/.test(process.env.NODE_DEBUG)) { debug = function(x) { console.error('HTTP: %s', x); }; } else { debug = function() { }; |