Skip to content

Commit

Permalink
logger error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
objt-ev committed Jan 17, 2023
1 parent e0d730f commit c30beb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion log-elk-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = function (RED) {
transports: transports
});

logger.on('error', (error) => {
this.logger.on('error', (error) => {
console.error('Error in logger caught', error);
});

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-log-elk",
"version": "1.2.5",
"version": "1.2.7",
"description": "A Node-RED logging node with multiple outputs using the winston and winston-elasticsearch logging libraries",
"main": "log-elk.js",
"scripts": {
Expand Down Expand Up @@ -30,8 +30,8 @@
"author": "ev",
"license": "MIT",
"dependencies": {
"winston": "^3.8.2",
"winston-elasticsearch": "^0.17.1",
"winston": "^3.3.3",
"winston-elasticsearch": "^0.15.2",
"json-stringify-safe": "^5.0.1"
}
}

0 comments on commit c30beb6

Please sign in to comment.