Skip to content

Commit e4a1ea9

Browse files
authored
Merge pull request #2 from joeycumines/debug_log_flush
fix(influx-v1.4-flush): debug log the stats flush to avoid spam
2 parents 6582a84 + 9a77096 commit e4a1ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/influxdb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ InfluxdbBackend.prototype.httpPOST_v14 = function (points) {
659659
};
660660

661661
var req = self.protocol.request(options);
662-
console.log(options);
662+
self.logDebug(JSON.stringify(options));
663663
req.on('socket', function (res) {
664664
startTime = process.hrtime();
665665
});
@@ -692,7 +692,7 @@ InfluxdbBackend.prototype.httpPOST_v14 = function (points) {
692692
var size = (self.influxdbStats.payloadSize / 1024).toFixed(2);
693693
return 'Payload size ' + size + ' KB';
694694
});
695-
console.log(payload);
695+
self.logDebug(payload);
696696
req.write(payload);
697697
req.end();
698698
}

0 commit comments

Comments
 (0)