From 8da5e8edb251dcc72c5a0a1c3bdce1f535a18c48 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sun, 28 Jul 2019 18:04:23 -0700 Subject: [PATCH] Update influxdb-logger.groovy --- third-party/influxdb-logger.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/third-party/influxdb-logger.groovy b/third-party/influxdb-logger.groovy index 3cba6e3..4eb95a2 100755 --- a/third-party/influxdb-logger.groovy +++ b/third-party/influxdb-logger.groovy @@ -598,7 +598,7 @@ def logSystemProperties() { def postToInfluxDB(data) { logger("postToInfluxDB(): Posting data to InfluxDB: Host: ${state.databaseHost}, Port: ${state.databasePort}, Database: ${state.databaseName}, Data: [${data}]","debug") - try { + /* try { def hubAction = new physicalgraph.device.HubAction( [ method: "POST", @@ -614,7 +614,7 @@ def postToInfluxDB(data) { } catch (Exception e) { logger("postToInfluxDB(): Exception ${e} on ${hubAction}","error") - } + }*/ // For reference, code that could be used for WAN hosts: // def url = "http://${state.databaseHost}:${state.databasePort}/write?db=${state.databaseName}" @@ -636,11 +636,11 @@ def postToInfluxDB(data) { * * Handles response from post made in postToInfluxDB(). **/ -def handleInfluxResponse(physicalgraph.device.HubResponse hubResponse) { +/*def handleInfluxResponse(physicalgraph.device.HubResponse hubResponse) { if(hubResponse.status >= 400) { logger("postToInfluxDB(): Something went wrong! Response from InfluxDB: Headers: ${hubResponse.headers}, Body: ${hubResponse.body}","error") } -} +}*/ /***************************************************************************************************************** -- 2.34.1