From 8a404686357d8eeb8a4997fe4626e2aed46f9c78 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 18 Feb 2019 14:01:12 -0500 Subject: 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 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/report.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'doc/api/report.md') 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 -- cgit v1.2.1