-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
(v6.x backport) process: add --redirect-warnings command line argument #14480
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
(v6.x backport) process: add --redirect-warnings command line argument #14480
Conversation
|
Parking this until the next semver minor release of 6.x, see #14418 (comment) @nodejs/lts |
7b8fcf8 to
f4691bb
Compare
f9419c2 to
403c465
Compare
aaf4e13 to
31f572c
Compare
|
Needs a rebase. Good to land |
f6063fc to
33c45ce
Compare
|
Landed in adf6d16 |
|
backing this out of v6.x-staging it is not ready to land yet. We will land the minors next month when we are prepping the minor release |
33c45ce to
a76b3b8
Compare
b811464 to
2c8fe97
Compare
|
landed in 158906b707 |
|
@sam-github I had to back this out as it was breaking the build. Can you please rebase and confirm that this compiles |
355249a to
0597d3f
Compare
b879e03 to
2604584
Compare
|
rebased again, and it compiles for me, I'm running tests locally and on ci: https://ci.nodejs.org/job/node-test-pull-request/10590/ |
The --redirect-warnings command line argument allows process warnings to be written to a specified file rather than printed to stderr. Also adds an equivalent NODE_REDIRECT_WARNINGS environment variable. If the specified file cannot be opened or written to for any reason, the argument is ignored and the warning is printed to stderr. If the file already exists, it will be appended to. PR-URL: nodejs#10116 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Michal Zasso <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
Mutations of the environment can invalidate pointers to environment variables, so make `secure_getenv()` copy them out instead of returning pointers. This is the part of nodejs#11051 that applies to nodejs@03e89b3
2604584 to
63c1ce4
Compare
|
replaced by #12677 |
The --redirect-warnings command line argument allows process warnings
to be written to a specified file rather than printed to stderr.
Also adds an equivalent NODE_REDIRECT_WARNINGS environment variable.
If the specified file cannot be opened or written to for any reason,
the argument is ignored and the warning is printed to stderr.
If the file already exists, it will be appended to.
PR-URL: #10116
Reviewed-By: Michael Dawson [email protected]
Reviewed-By: Michal Zasso [email protected]
Reviewed-By: Fedor Indutny [email protected]
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)