Open sitegui opened 7 years ago
Using Object.freeze(console)
before pm2.connect()
solves it for me now
I believe its coming from this call, we should either implement a custom logger and replace all console
call, or calling the overrideConsole
only when we are on the daemon process.
Yes, the code path seems to be:
Expected behaviour
Using PM2 programmatically should not override console.log's native behavior when PM2 daemon is not spawned.
For example,
console.log({a: 2})
should print{ a: 2 }
Actual behaviour
Utility.overrideConsole()
is calledIn the example above,
2017-03-16 15:27:05: [object Object]
is printed 😞Steps to reproduce
$ pm2 kill
Software versions used