-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
process: suggest --trace-warnings when printing warning #32797
Conversation
Suggest using `--trace-warnings` or `--trace-deprecation` the first time a warning is emitted without a stack trace, similar to how we suggest `--trace-uncaught` when printing uncaught exceptions without a stack trace.
CI: https://ci.nodejs.org/job/node-test-pull-request/30672/ (:white_check_mark:) |
Landed in 907ebdd |
Suggest using `--trace-warnings` or `--trace-deprecation` the first time a warning is emitted without a stack trace, similar to how we suggest `--trace-uncaught` when printing uncaught exceptions without a stack trace. PR-URL: #32797 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: #32797 (comment) PR-URL: #32798 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Suggest using `--trace-warnings` or `--trace-deprecation` the first time a warning is emitted without a stack trace, similar to how we suggest `--trace-uncaught` when printing uncaught exceptions without a stack trace. PR-URL: #32797 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: #32797 (comment) PR-URL: #32798 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Suggest using `--trace-warnings` or `--trace-deprecation` the first time a warning is emitted without a stack trace, similar to how we suggest `--trace-uncaught` when printing uncaught exceptions without a stack trace. PR-URL: #32797 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: #32797 (comment) PR-URL: #32798 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Refs: #32797 (comment) PR-URL: #32798 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Richard Lau <[email protected]>
@addaleax should this go back into |
@codebytere I’m not sure myself. @targos @cjihrig @devnexen @richardlau @BridgeAR You approved this, wdyt? |
I don't have a strong opinion one way or the other, but I would not backport this unless it starts causing a lot of problems backporting other commits. |
I would backport it. Otherwise this is going to cause conflicts on each warning that is backported and it is helpful for users. |
I agree with @cjihrig 's position. I do think the extra message is useful but it does introduce an extra line of output which, as can be seen by the test changes, can affect anything trying to parse the output of running a Node.js application. If the change breaks anything in CITGM for 12.x I'd be a hard no to backporting. |
I added the don't land on 12 label due to the comments above. |
Suggest using
--trace-warnings
or--trace-deprecation
the firsttime a warning is emitted without a stack trace, similar to how
we suggest
--trace-uncaught
when printing uncaught exceptionswithout a stack trace.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes