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
path: root/src
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 /src
parentd040f1d19d17e056223ab3de0e58ed470c8b9f52 (diff)
NODE_DEBUG uses strings instead of bitflags
Diffstat (limited to 'src')
-rw-r--r--src/node.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node.js b/src/node.js
index ca4bead83e4..1d1ca687d86 100644
--- a/src/node.js
+++ b/src/node.js
@@ -123,9 +123,8 @@
// Modules
- var debugLevel = parseInt(process.env['NODE_DEBUG'], 16);
var debug;
- if (debugLevel & 1) {
+ if (process.env.NODE_DEBUG && /module/.test(process.env.NODE_DEBUG)) {
debug = function(x) { console.error(x); };
} else {
debug = function() { };