diff options
author | cjihrig <cjihrig@gmail.com> | 2019-02-18 14:01:12 -0500 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2019-02-28 23:35:35 +1100 |
commit | 8a404686357d8eeb8a4997fe4626e2aed46f9c78 (patch) | |
tree | 9c1a793fd8508865589b454f8a7e9955bdc371c1 /doc/api/report.md | |
parent | 0e89d7add6e75ac1ac35d63bc5c76922f630c3bf (diff) | |
download | node-new-8a404686357d8eeb8a4997fe4626e2aed46f9c78.tar.gz |
report: remove verbose setting
This commit removes the --diagnostic-report-verbose CLI option
and all associated logic. The flag is currently only used in one
place, and only reflects the settings at startup. Additionally,
Node tends to use the NODE_DEBUG mechanism for adding verbose
output.
PR-URL: https://github.com/nodejs/node/pull/26195
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/report.md')
-rw-r--r-- | doc/api/report.md | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/doc/api/report.md b/doc/api/report.md index 8d6d054c0a..419fe33417 100644 --- a/doc/api/report.md +++ b/doc/api/report.md @@ -401,9 +401,6 @@ written. * `--diagnostic-report-signal` Sets or resets the signal for report generation (not supported on Windows). Default signal is `SIGUSR2`. -* `--diagnostic-report-verbose` Flag that enables additional information to be -printed during report generation. - A report can also be triggered via an API call from a JavaScript application: ```js @@ -495,8 +492,7 @@ process.report.setOptions({ events: ['exception', 'fatalerror', 'signal'], signal: 'SIGUSR2', filename: 'myreport.json', - path: '/home/nodeuser', - verbose: true + path: '/home/nodeuser' }); ``` @@ -519,9 +515,6 @@ timestamp, PID and sequence number. URLs are not supported. Defaults to the current working directory of the Node.js process. -`verbose` specifies whether to print additional verbose messages -pertinent to the report generation. Defaults to `false`. - ```js // Trigger report only on uncaught exceptions. process.report.setOptions({ events: ['exception'] }); @@ -541,7 +534,7 @@ environment variables: NODE_OPTIONS="--experimental-report --diagnostic-report-uncaught-exception \ --diagnostic-report-on-fatalerror --diagnostic-report-on-signal \ --diagnostic-report-signal=SIGUSR2 --diagnostic-report-filename=./report.json \ - --diagnostic-report-directory=/home/nodeuser --diagnostic-report-verbose" + --diagnostic-report-directory=/home/nodeuser" ``` Specific API documentation can be found under |