Skip to content

Commit

Permalink
bugfix: logger was not instantiated if only loki was enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
objt-ev committed Oct 22, 2024
1 parent b5e0508 commit 8914ad6
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 @@ -107,7 +107,7 @@ module.exports = function (RED) {

this.debugLog = config.logdebug;

if (elkLog || fileLog || consoleLog) {
if (elkLog || lokiLog || fileLog || consoleLog) {
this.logger = new winston.createLogger({
level: 'debug',
transports: transports,
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.3.0",
"version": "1.3.1",
"description": "A Node-RED logging node with multiple outputs using the winston,winston-elasticsearch and winston-loki logging libraries",
"main": "log-elk.js",
"scripts": {
Expand Down Expand Up @@ -32,8 +32,8 @@
"license": "MIT",
"dependencies": {
"winston": "^3.13.0",
"winston-elasticsearch": "^0.18.0",
"winston-loki": "^6.1.2",
"winston-elasticsearch": "^0.15.2",
"winston-loki": "^6.1.3",
"json-stringify-safe": "^5.0.1"
}
}

0 comments on commit 8914ad6

Please sign in to comment.