| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0e89d7a commit 8a40468
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -126,13 +126,6 @@ Enables report to be generated on un-caught exceptions, if | |||
| 126 | 126 | `--experimental-report` is enabled. Useful when inspecting JavaScript stack in | |
| 127 | 127 | conjunction with native stack and other runtime environment data. | |
| 128 | 128 | ||
| 129 | - ### `--diagnostic-report-verbose` | ||
| 130 | - <!-- YAML | ||
| 131 | - added: v11.8.0 | ||
| 132 | - --> | ||
| 133 | - | ||
| 134 | - Flag that enables additional information to be printed during report generation. | ||
| 135 | - | ||
| 136 | 129 | ### `--enable-fips` | |
| 137 | 130 | <!-- YAML | |
| 138 | 131 | added: v6.0.0 | |
@@ -672,7 +665,6 @@ Node.js options that are allowed are: | |||
| 672 | 665 | - `--diagnostic-report-on-signal` | |
| 673 | 666 | - `--diagnostic-report-signal` | |
| 674 | 667 | - `--diagnostic-report-uncaught-exception` | |
| 675 | - - `--diagnostic-report-verbose` | ||
| 676 | 668 | - `--enable-fips` | |
| 677 | 669 | - `--experimental-modules` | |
| 678 | 670 | - `--experimental-repl-await` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1703,8 +1703,6 @@ added: v11.8.0 | |||
| 1703 | 1703 | * `filename` {string} Name of the file where the report is written. | |
| 1704 | 1704 | * `path` {string} Directory where the report is written. | |
| 1705 | 1705 | **Default:** the current working directory of the Node.js process. | |
| 1706 | - * `verbose` {boolean} Flag that controls additional verbose information on | ||
| 1707 | - report generation. **Default:** `false`. | ||
| 1708 | 1706 | ||
| 1709 | 1707 | Configures the diagnostic reporting behavior. Upon invocation, the runtime | |
| 1710 | 1708 | is reconfigured to generate reports based on `options`. Several usage examples | |
@@ -1721,9 +1719,6 @@ process.report.setOptions({ filename: 'foo.json', path: '/home' }); | |||
| 1721 | 1719 | // to `stdout` and `stderr`. Usage of these will result in report being written | |
| 1722 | 1720 | // to the associated standard streams. URLs are not supported. | |
| 1723 | 1721 | process.report.setOptions({ filename: 'stdout' }); | |
| 1724 | - | ||
| 1725 | - // Enable verbose option on report generation. | ||
| 1726 | - process.report.setOptions({ verbose: true }); | ||
| 1727 | 1722 | ``` | |
| 1728 | 1723 | ||
| 1729 | 1724 | Signal based report generation is not supported on Windows. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -401,9 +401,6 @@ written. | |||
| 401 | 401 | * `--diagnostic-report-signal` Sets or resets the signal for report generation | |
| 402 | 402 | (not supported on Windows). Default signal is `SIGUSR2`. | |
| 403 | 403 | ||
| 404 | - * `--diagnostic-report-verbose` Flag that enables additional information to be | ||
| 405 | - printed during report generation. | ||
| 406 | - | ||
| 407 | 404 | A report can also be triggered via an API call from a JavaScript application: | |
| 408 | 405 | ||
| 409 | 406 | ```js | |
@@ -495,8 +492,7 @@ process.report.setOptions({ | |||
| 495 | 492 | events: ['exception', 'fatalerror', 'signal'], | |
| 496 | 493 | signal: 'SIGUSR2', | |
| 497 | 494 | filename: 'myreport.json', | |
| 498 | - path: '/home/nodeuser', | ||
| 499 | - verbose: true | ||
| 495 | + path: '/home/nodeuser' | ||
| 500 | 496 | }); | |
| 501 | 497 | ``` | |
| 502 | 498 | ||
@@ -519,9 +515,6 @@ timestamp, PID and sequence number. | |||
| 519 | 515 | URLs are not supported. Defaults to the current working directory of the | |
| 520 | 516 | Node.js process. | |
| 521 | 517 | ||
| 522 | - `verbose` specifies whether to print additional verbose messages | ||
| 523 | - pertinent to the report generation. Defaults to `false`. | ||
| 524 | - | ||
| 525 | 518 | ```js | |
| 526 | 519 | // Trigger report only on uncaught exceptions. | |
| 527 | 520 | process.report.setOptions({ events: ['exception'] }); | |
@@ -541,7 +534,7 @@ environment variables: | |||
| 541 | 534 | NODE_OPTIONS="--experimental-report --diagnostic-report-uncaught-exception \ | |
| 542 | 535 | --diagnostic-report-on-fatalerror --diagnostic-report-on-signal \ | |
| 543 | 536 | --diagnostic-report-signal=SIGUSR2 --diagnostic-report-filename=./report.json \ | |
| 544 | - --diagnostic-report-directory=/home/nodeuser --diagnostic-report-verbose" | ||
| 537 | + --diagnostic-report-directory=/home/nodeuser" | ||
| 545 | 538 | ``` | |
| 546 | 539 | ||
| 547 | 540 | Specific API documentation can be found under | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,11 +114,6 @@ to be generated on un-caught exceptions, if | |||
| 114 | 114 | .Sy --experimental-report | |
| 115 | 115 | is enabled. Useful when inspecting JavaScript stack in conjunction with native stack and other runtime environment data. | |
| 116 | 116 | . | |
| 117 | - .It Fl -diagnostic-report-verbose | ||
| 118 | - Flag that enables additional information to be printed during | ||
| 119 | - .Sy diagnostic report | ||
| 120 | - generation. | ||
| 121 | - . | ||
| 122 | 117 | .It Fl -enable-fips | |
| 123 | 118 | Enable FIPS-compliant crypto at startup. | |
| 124 | 119 | Requires Node.js to be built with | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,8 +25,7 @@ let config = { | |||
| 25 | 25 | events: [], | |
| 26 | 26 | signal: 'SIGUSR2', | |
| 27 | 27 | filename: '', | |
| 28 | - path: '', | ||
| 29 | - verbose: false | ||
| 28 | + path: '' | ||
| 30 | 29 | }; | |
| 31 | 30 | const report = { | |
| 32 | 31 | setOptions(options) { | |
@@ -58,13 +57,6 @@ const report = { | |||
| 58 | 57 | else | |
| 59 | 58 | throw new ERR_INVALID_ARG_TYPE('path', 'string', options.path); | |
| 60 | 59 | ||
| 61 | - if (typeof options.verbose === 'boolean') | ||
| 62 | - newConfig.verbose = options.verbose; | ||
| 63 | - else if (options.verbose === undefined) | ||
| 64 | - newConfig.verbose = false; | ||
| 65 | - else | ||
| 66 | - throw new ERR_INVALID_ARG_TYPE('verbose', 'boolean', options.verbose); | ||
| 67 | - | ||
| 68 | 60 | if (typeof options.signal === 'string') | |
| 69 | 61 | newConfig.signal = convertToValidSignal(options.signal); | |
| 70 | 62 | else if (options.signal === undefined) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,11 +79,6 @@ void PerIsolateOptions::CheckOptions(std::vector<std::string>* errors) { | |||
| 79 | 79 | "--diagnostic-report-uncaught-exception option is valid only when " | |
| 80 | 80 | "--experimental-report is set"); | |
| 81 | 81 | } | |
| 82 | - | ||
| 83 | - if (report_verbose) { | ||
| 84 | - errors->push_back("--diagnostic-report-verbose option is valid only when " | ||
| 85 | - "--experimental-report is set"); | ||
| 86 | - } | ||
| 87 | 82 | #endif // NODE_REPORT | |
| 88 | 83 | } | |
| 89 | 84 | ||
@@ -339,11 +334,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser() { | |||
| 339 | 334 | " (default: current working directory of Node.js process)", | |
| 340 | 335 | &PerIsolateOptions::report_directory, | |
| 341 | 336 | kAllowedInEnvironment); | |
| 342 | - AddOption("--diagnostic-report-verbose", | ||
| 343 | - "verbose option for report generation(true|false)." | ||
| 344 | - " (default: false)", | ||
| 345 | - &PerIsolateOptions::report_verbose, | ||
| 346 | - kAllowedInEnvironment); | ||
| 347 | 337 | #endif // NODE_REPORT | |
| 348 | 338 | ||
| 349 | 339 | Insert(&EnvironmentOptionsParser::instance, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -153,7 +153,6 @@ class PerIsolateOptions : public Options { | |||
| 153 | 153 | std::string report_signal; | |
| 154 | 154 | std::string report_filename; | |
| 155 | 155 | std::string report_directory; | |
| 156 | - bool report_verbose; | ||
| 157 | 156 | #endif // NODE_REPORT | |
| 158 | 157 | inline EnvironmentOptions* get_per_env_options(); | |
| 159 | 158 | void CheckOptions(std::vector<std::string>* errors) override; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -167,17 +167,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) { | |||
| 167 | 167 | ||
| 168 | 168 | Utf8Value pathstr(env->isolate(), path); | |
| 169 | 169 | ||
| 170 | - // Report verbosity | ||
| 171 | - Local<String> verbosekey = FIXED_ONE_BYTE_STRING(env->isolate(), "verbose"); | ||
| 172 | - Local<Value> verbose_unchecked; | ||
| 173 | - if (!obj->Get(context, verbosekey).ToLocal(&verbose_unchecked)) return; | ||
| 174 | - Local<Boolean> verbose; | ||
| 175 | - if (verbose_unchecked->IsUndefined() || verbose_unchecked->IsNull()) | ||
| 176 | - verbose_unchecked = Boolean::New(env->isolate(), "verbose"); | ||
| 177 | - verbose = verbose_unchecked.As<Boolean>(); | ||
| 178 | - | ||
| 179 | - bool verb = verbose->BooleanValue(context).FromJust(); | ||
| 180 | - | ||
| 181 | 170 | if (sync) { | |
| 182 | 171 | static const std::string e = "exception"; | |
| 183 | 172 | static const std::string s = "signal"; | |
@@ -202,7 +191,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) { | |||
| 202 | 191 | options->report_filename = *filestr; | |
| 203 | 192 | CHECK_NOT_NULL(*pathstr); | |
| 204 | 193 | options->report_directory = *pathstr; | |
| 205 | - options->report_verbose = verb; | ||
| 206 | 194 | } else { | |
| 207 | 195 | int i = 0; | |
| 208 | 196 | if (options->report_uncaught_exception && | |
@@ -242,12 +230,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) { | |||
| 242 | 230 | .ToLocal(&path_value)) | |
| 243 | 231 | return; | |
| 244 | 232 | if (!obj->Set(context, pathkey, path_value).FromJust()) return; | |
| 245 | - | ||
| 246 | - if (!obj->Set(context, | ||
| 247 | - verbosekey, | ||
| 248 | - Boolean::New(env->isolate(), options->report_verbose)) | ||
| 249 | - .FromJust()) | ||
| 250 | - return; | ||
| 251 | 233 | } | |
| 252 | 234 | } | |
| 253 | 235 | ||
@@ -261,22 +243,6 @@ static void Initialize(Local<Object> exports, | |||
| 261 | 243 | env->SetMethod(exports, "onUnCaughtException", OnUncaughtException); | |
| 262 | 244 | env->SetMethod(exports, "onUserSignal", OnUserSignal); | |
| 263 | 245 | env->SetMethod(exports, "syncConfig", SyncConfig); | |
| 264 | - | ||
| 265 | - // TODO(gireeshpunathil) if we are retaining this flag, | ||
| 266 | - // insert more verbose information at vital control flow | ||
| 267 | - // points. Right now, it is only this one. | ||
| 268 | - if (options->report_verbose) { | ||
| 269 | - std::cerr << "report: initialization complete, event flags:" << std::endl; | ||
| 270 | - std::cerr << "report_uncaught_exception: " | ||
| 271 | - << options->report_uncaught_exception << std::endl; | ||
| 272 | - std::cerr << "report_on_signal: " << options->report_on_signal << std::endl; | ||
| 273 | - std::cerr << "report_on_fatalerror: " << options->report_on_fatalerror | ||
| 274 | - << std::endl; | ||
| 275 | - std::cerr << "report_signal: " << options->report_signal << std::endl; | ||
| 276 | - std::cerr << "report_filename: " << options->report_filename << std::endl; | ||
| 277 | - std::cerr << "report_directory: " << options->report_directory << std::endl; | ||
| 278 | - std::cerr << "report_verbose: " << options->report_verbose << std::endl; | ||
| 279 | - } | ||
| 280 | 246 | } | |
| 281 | 247 | ||
| 282 | 248 | } // namespace report | |
| Back | FazBrowse Home | New Git URL |
0 commit comments