Skip to content

Commit

Permalink
Updated error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Apr 11, 2022
1 parent 111b873 commit c7ca50d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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`);
Expand Down

0 comments on commit c7ca50d

Please sign in to comment.