Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM2-io-apm always logs unhandledRejection and uncaughtException to error stream #277

Open
Khez opened this issue Nov 10, 2020 · 1 comment

Comments

@Khez
Copy link

Khez commented Nov 10, 2020

Error stream is polluted with an intrusive log that can't be turned off or customised.

This happens when using PM2 in fork mode, as can be seen in my original issue: Unitech/pm2#4913

Culprits:

Scouring the source code I found a couple of other places that use the console directly.

Each of these files use console in various places, but one might argue its okay.

Unlike features/notify.ts, these are user-land generated errors by invalid configuration and should never hit production.

Pull Request

@Khez
Copy link
Author

Khez commented Jan 14, 2021

ping @Unitech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant