Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-01-04 02:27:57 +0300
committerRyan Dahl <ry@tinyclouds.org>2011-01-04 02:41:58 +0300
commite4dd5cd6fd7b44f4fc21a5cfd39615a7a5833957 (patch)
tree6c836c9aa1a1161fe73b46b5fbe6abab1c29517d /lib/http.js
parentd040f1d19d17e056223ab3de0e58ed470c8b9f52 (diff)
NODE_DEBUG uses strings instead of bitflags
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js3
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() { };