Skip to content

Commit

Permalink
v1.4.2 fix init of logger
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-range-ais authored Feb 13, 2023
1 parent 5a1f94a commit 83168f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 83168f6

Please sign in to comment.