-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
process: Add code to warnings, assign codes to deprecations #10116
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,16 @@ added: v6.0.0 | |
|
||
Print stack traces for process warnings (including deprecations). | ||
|
||
### `--redirect-warnings=file` | ||
|
||
<!-- YAML | ||
added: REPLACEME | ||
--> | ||
|
||
Write process warnings to the given file instead of printing to stderr. The | ||
|
||
file will be created if it does not exist, and will be appended to if it does. | ||
If an error occurs while attempting to write the warning to the file, the | ||
warning will be written to stderr instead. | ||
|
||
### `--trace-sync-io` | ||
<!-- YAML | ||
added: v2.1.0 | ||
|
@@ -395,6 +405,17 @@ Note: Be aware that unless the child environment is explicitly set, this | |
evironment variable will be inherited by any child processes, and if they use | ||
OpenSSL, it may cause them to trust the same CAs as node. | ||
|
||
### `NODE_REDIRECT_WARNINGS=file` | ||
<!-- YAML | ||
added: REPLACEME | ||
--> | ||
|
||
When set, process warnings will be emitted to the given file instead of | ||
printing to stderr. The file will be created if it does not exist, and will be | ||
appended to if it does. If an error occurs while attempting to write the | ||
warning to the file, the warning will be written to stderr instead. This is | ||
equivalent to using the `--redirect-warnings=file` command-line flag. | ||
|
||
[emit_warning]: process.html#process_process_emitwarning_warning_name_ctor | ||
[Buffer]: buffer.html#buffer_buffer | ||
[debugger]: debugger.html | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe use the same word in the file name and the section name? I.e.
deprecated.md/html
or evendeprecated-apis.md/html
?