From 8ef243d1a40e30a4b6bc69cdc929722ab551a56e Mon Sep 17 00:00:00 2001 From: Michael Iglesias Date: Mon, 15 Oct 2018 10:46:12 -0700 Subject: [PATCH 1/2] Removed verbose logging --- index.js | 5 +---- lib/objectToLineProtocol.js | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 5699eab..5da8912 100644 --- a/index.js +++ b/index.js @@ -96,10 +96,7 @@ ShadowedInflux.prototype.writePoints = function(points = [], opts = {}) { ? this.eventQueue.splice(0, this.eventQueueBatchSize) : points - console.log( - 'InfluxDB : PROCESSING : Writing points...', - JSON.stringify(events) - ) + console.log('InfluxDB : PROCESSING : Writing points...') return this.writePointsHttp(JSON.parse(JSON.stringify(events)), opts).then( res => { diff --git a/lib/objectToLineProtocol.js b/lib/objectToLineProtocol.js index 3c57666..d8ab0e1 100644 --- a/lib/objectToLineProtocol.js +++ b/lib/objectToLineProtocol.js @@ -12,6 +12,10 @@ function objectToLineProtocol(points = []) { currVal.timestamp = moment(currVal.timestamp).unix() else currVal.timestamp = moment(currVal.timestamp).unix() + console.log('====================================') + console.log(currVal.timestamp) + console.log('====================================') + // Transform tags to comma-delimited key=value if (currVal.tags) { currVal.tags = From 3b143b87bf7f04a40dbd3c0920763f7280d028b4 Mon Sep 17 00:00:00 2001 From: Michael Iglesias Date: Mon, 15 Oct 2018 10:53:15 -0700 Subject: [PATCH 2/2] removed last remnants of verbose logging --- lib/objectToLineProtocol.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/objectToLineProtocol.js b/lib/objectToLineProtocol.js index d8ab0e1..3c57666 100644 --- a/lib/objectToLineProtocol.js +++ b/lib/objectToLineProtocol.js @@ -12,10 +12,6 @@ function objectToLineProtocol(points = []) { currVal.timestamp = moment(currVal.timestamp).unix() else currVal.timestamp = moment(currVal.timestamp).unix() - console.log('====================================') - console.log(currVal.timestamp) - console.log('====================================') - // Transform tags to comma-delimited key=value if (currVal.tags) { currVal.tags =