mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Clean up NODE_DEBUG detection
It wasn't detecting if NODE_DEBUG=0
This commit is contained in:
1 parent
8e9ec4abea
commit
218d7e9f2d
1 file changed
+1
-3
+1
-3
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user