Skip to content

Commit

Permalink
Merge pull request #7 from intellifylearning/optimize
Browse files Browse the repository at this point in the history
be quiet during whitelist eval
  • Loading branch information
Prashant Nayak authored Sep 17, 2016
2 parents f25f772 + 29ef047 commit 8e38140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/aws-cloudwatch-statsd-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ CloudwatchBackend.prototype.flush = function(timestamp, metrics) {
continue;

if (this.config.whitelist && this.config.whitelist.length > 0 && this.config.whitelist.indexOf(key) == -1) {
console.log("Key (counter) " + key + " not in whitelist");
// console.log("Key (counter) " + key + " not in whitelist");
continue;
}

Expand Down Expand Up @@ -141,7 +141,7 @@ CloudwatchBackend.prototype.flush = function(timestamp, metrics) {
if (timers[key].length > 0) {

if (this.config.whitelist && this.config.whitelist.length > 0 && this.config.whitelist.indexOf(key) == -1) {
console.log("Key (counter) " + key + " not in whitelist");
// console.log("Key (counter) " + key + " not in whitelist");
continue;
}

Expand Down Expand Up @@ -197,7 +197,7 @@ CloudwatchBackend.prototype.flush = function(timestamp, metrics) {
for (key in gauges) {

if (this.config.whitelist && this.config.whitelist.length > 0 && this.config.whitelist.indexOf(key) == -1) {
console.log("Key (counter) " + key + " not in whitelist");
// console.log("Key (counter) " + key + " not in whitelist");
continue;
}

Expand All @@ -224,7 +224,7 @@ CloudwatchBackend.prototype.flush = function(timestamp, metrics) {
for (key in sets) {

if (this.config.whitelist && this.config.whitelist.length > 0 && this.config.whitelist.indexOf(key) == -1) {
console.log("Key (counter) " + key + " not in whitelist");
// console.log("Key (counter) " + key + " not in whitelist");
continue;
}

Expand Down

0 comments on commit 8e38140

Please sign in to comment.