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

Use process.emitWarning instead of console.warn #10687

Closed
Ginden opened this issue Sep 6, 2021 · 0 comments
Closed

Use process.emitWarning instead of console.warn #10687

Ginden opened this issue Sep 6, 2021 · 0 comments
Labels
developer-experience This issue improves error messages, debugging, or reporting
Milestone

Comments

@Ginden
Copy link

Ginden commented Sep 6, 2021

Do you want to request a feature or report a bug?

Feature request.

What is the current behavior?

Certain methods calls console.warn and trace.

What is the expected behavior?

Warnings are emitted using standarized channel - process.emitWarning.

mongodb driver already does that.

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.

This affects both 6.0 and 5.0.

@vkarpov15 vkarpov15 added this to the 6.0.7 milestone Sep 6, 2021
@vkarpov15 vkarpov15 added the developer-experience This issue improves error messages, debugging, or reporting label Sep 6, 2021
@vkarpov15 vkarpov15 modified the milestones: 6.0.7, 6.0.8 Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer-experience This issue improves error messages, debugging, or reporting
Projects
None yet
Development

No branches or pull requests

2 participants