From c7ca50d236748afc025f2470787503ceca1c2f2f Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Mon, 11 Apr 2022 15:39:22 +0200 Subject: [PATCH] Updated error messages --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 1bfc7f0..f798647 100644 --- a/main.js +++ b/main.js @@ -53,7 +53,7 @@ class Luftdaten extends utils.Adapter { let successfullyFilled = 0; if (sensors && Array.isArray(sensors)) { - this.log.debug(`[onReady] Found ${sensors.length} sensors in configuration, requesting data`); + this.log.debug(`[onReady] found ${sensors.length} sensors in configuration, requesting data`); for (const s in sensors) { const sensorIndex = parseInt(s) + 1; @@ -64,6 +64,8 @@ class Luftdaten extends utils.Adapter { if (deviceId) { sensorsKeep.push(deviceId); + this.log.debug(`[onReady] sensor ${sensorIndex}/${sensors.length} with idenfitier "${sensorIdentifier}" will be saved as deviceId "${deviceId}"`); + try { const responseTime = await this.fillSensorData(deviceId, sensor); this.log.debug(`[onReady] sensor ${sensorIndex}/${sensors.length} - data of deviceId "${deviceId}" filled in ${responseTime/1000}s`);