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

fix: Use process.emitWarning to log errors #114

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

timfish
Copy link
Contributor

@timfish timfish commented Jun 25, 2024

Uses process.emitWarning rather than console.warn to log error messages when failing to wrap a module.

This means that by default the warnings are truncated. You can get full stack traces by passing --trace-warnings and you can hide the warnings with --no-warnings.

@timfish timfish merged commit a3778ac into nodejs:main Jun 29, 2024
48 checks passed
@timfish timfish deleted the fix/use-process.emitWarning branch June 29, 2024 11:50
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

Successfully merging this pull request may close these issues.

3 participants