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 /src | |
parent | d040f1d19d17e056223ab3de0e58ed470c8b9f52 (diff) |
NODE_DEBUG uses strings instead of bitflags
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 3 |
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() { }; |