Skip to content

Commit

Permalink
update debug log to new logger, make all debug prints use consistent …
Browse files Browse the repository at this point in the history
…DEBUG: prefix by removing the extra arg
  • Loading branch information
david raistrick committed Jan 17, 2013
1 parent 4eb4b31 commit 82bf445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backends/graphite.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ var flush_stats = function graphite_flush(ts, metrics) {
}
}
post_stats(statString);
// lets debug log a few of our metrics
if (debug) {
util.log("DEBUG: numStats: " + numStats);
l.log("numStats: " + numStats);
}
};

Expand Down
4 changes: 2 additions & 2 deletions stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function loadBackend(config, name) {
var backendmod = require(name);

if (config.debug) {
l.log("Loading backend: " + name, 'debug');
l.log("Loading backend: " + name, 'DEBUG');
}

var ret = backendmod.init(startup_time, config, backendEvents);
Expand Down Expand Up @@ -110,7 +110,7 @@ config.configFile(process.argv[2], function (config, oldConfig) {
l.log("\nCounters:\n" + util.inspect(counters) +
"\nTimers:\n" + util.inspect(timers) +
"\nSets:\n" + util.inspect(sets) +
"\nGauges:\n" + util.inspect(gauges), 'debug');
"\nGauges:\n" + util.inspect(gauges), 'DEBUG');
}, config.debugInterval || 10000);
}

Expand Down

0 comments on commit 82bf445

Please sign in to comment.