austinsc / node-red-contrib-envisalink-dsc

DSC alarm system support for node-red using the EnvisaLink module
Apache License 2.0
2 stars 0 forks source link

Turning off console logging #2

Open Gnindit opened 7 years ago

Gnindit commented 7 years ago

Hi Just installed Envisa link to my DSC and using it with node-red.

Is it possible to somehow turn off all the logging to the console without changing teh node.red settings to log less?

Gnindit commented 7 years ago

Added this to envisalink-controller.js

this.el.on('log-trace', function(text) {
  _this.trace(RED._(text));
});

Then I could change log-debug to log-trace in envisalink.js where I wanted.

austinsc commented 6 years ago

Good idea- I'll integrate that or if you create a pull request, I'll merge it.