Open skavinvarnan opened 2 years ago
Do you have the DEBUG option enabled? These message appear to be DEBUG messages from the package.
On Aug 20, 2021, at 12:55 AM, Kavin Varnan @.***> wrote:
hbEvent
No I don't run node-red on debug mode. Here is my pm2 script.
module.exports = {
apps : [{
name : "Node Red",
script : "node-red",
node_args: '--max-old-space-size=128',
out_file: "/var/log/nrout.log",
error_file: "/var/log/nrerr.log"
}]
}
I also did check your code. https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/blob/master/HAP-NodeRed.js#L183. Its getting printed as debug log.
But still I'm seeing the logs as error on pm2 🤔
This is definitely something in your PM2 config and setup, did you try googling it for a fix? Somewhere in the environment that your starting node-red from DEBUG is being enabled.
Also this is the debug package, https://www.npmjs.com/package/debug, which does use console.error
I'm running node-red on pm2, on my Raspberry Pi Zero. Its runs on a SD card. So I want to eliminate logs as much as possible. But I see on pm2 error logs and I see lots of events logs present there.
Here are the logs
These are all events logs, can we not log them as errors?