Browse Source

Clean up NODE_DEBUG detection

It wasn't detecting if NODE_DEBUG=0
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
218d7e9f2d
  1. 4
      src/node.js

4
src/node.js

@ -323,9 +323,7 @@ global.clearInterval = global.clearTimeout;
// Modules
var debugLevel = 0;
if ("NODE_DEBUG" in process.env) debugLevel = 1;
var debugLevel = parseInt(process.env["NODE_DEBUG"]);
function debug (x) {
if (debugLevel > 0) {
process.binding('stdio').writeError(x + "\n");

Loading…
Cancel
Save