From 83168f65486fc78527b77e96bd33b54b5606abf8 Mon Sep 17 00:00:00 2001 From: Matthias Range <52161455+matthias-range-ais@users.noreply.github.com> Date: Mon, 13 Feb 2023 12:46:04 +0100 Subject: [PATCH] v1.4.2 fix init of logger --- Monitoring.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Monitoring.js b/Monitoring.js index 8e0b8c2..10e9a9b 100644 --- a/Monitoring.js +++ b/Monitoring.js @@ -75,7 +75,8 @@ module.exports = function (RED) { RED.nodes.createNode(this, config); // check for all requierd parameters - var node = this; + var node = this; + logger.init(node); var id = config.id; var customerID = RED.util.evaluateNodeProperty(config.customerID, config.customerIDType, node); var eqID = RED.util.evaluateNodeProperty(config.eqID, config.eqIDType, node); @@ -102,7 +103,6 @@ module.exports = function (RED) { } // initialize file logger if enabled - logger.init(node); if (SelectionLogToFile == true) { logger.addFileLogger(id, pathLogFile, maxLogFileSize, maxNumLogFiles, "data") } diff --git a/package.json b/package.json index 2d20234..e68303a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ais_automation/node-red-contrib-eqcloud-monitoring", - "version": "1.4.1", + "version": "1.4.2", "node-red": { "nodes": { "Monitoring": "Monitoring.js"