MMM-Assistant icon indicating copy to clipboard operation
MMM-Assistant copied to clipboard

Add debug option to enable console debug messages to not spam logs

Open E3V3A opened this issue 6 years ago • 0 comments

The code base contain a lot of console.log() messages that are constantly spamming the pm2 logs. We should write a debug log wrapper to use a config option of : debug: true to enable/disable those.

Perhaps something like:

bLog: function (blob) {
  if (this.config.debug == true) {
     console.error(blob);
  }
} 

E3V3A avatar Mar 28 '18 13:03 E3V3A