Fix debug flag in timers.js
authorRyan Dahl <ry@tinyclouds.org>
Fri, 4 Feb 2011 17:00:21 +0000 (09:00 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 4 Feb 2011 17:00:21 +0000 (09:00 -0800)
lib/timers.js

index d79f64a..06229ed 100644 (file)
@@ -3,7 +3,7 @@ var L = require('_linklist');
 var assert = require('assert').ok;
 
 var debug;
-if (process.env.NODE_debug && /timer/.test(process.env.NODE_debug)) {
+if (process.env.NODE_DEBUG && /timer/.test(process.env.NODE_DEBUG)) {
   debug = function() { require('util').error.apply(this, arguments); };
 } else {
   debug = function() { };