feat: update logging to display InfluxDB token in initialization message
This commit is contained in:
@@ -10,7 +10,7 @@ const client = new InfluxDB({ url, token })
|
|||||||
const write = client.getWriteApi(org, boatTelemetry);
|
const write = client.getWriteApi(org, boatTelemetry);
|
||||||
const querying = client.getQueryApi(org);
|
const querying = client.getQueryApi(org);
|
||||||
|
|
||||||
console.log("InfluxDB client initialized with config:", { url, org, token: token ? '***' : null });
|
console.log("InfluxDB client initialized with config:", { url, org, token });
|
||||||
|
|
||||||
async function append(measurement, sensor, data) {
|
async function append(measurement, sensor, data) {
|
||||||
const point = new Point(measurement)
|
const point = new Point(measurement)
|
||||||
|
|||||||
Reference in New Issue
Block a user