mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
tls,cli: add --trace-tls command-line flag
This commit adds a --trace-tls command-line flag. The purpose is to enable tracing of TLS connections without the need to modify existing application code. PR-URL: https://github.com/nodejs/node/pull/27497 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
6 files changed
+89
-2
No files matched your search
@@ -373,6 +373,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
|
||||
"first tick",
|
||||
&EnvironmentOptions::trace_sync_io,
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--trace-tls",
|
||||
"prints TLS packet trace information to stderr",
|
||||
&EnvironmentOptions::trace_tls,
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--trace-warnings",
|
||||
"show stack traces on process warnings",
|
||||
&EnvironmentOptions::trace_warnings,
|
||||
|
||||
@@ -118,6 +118,7 @@ class EnvironmentOptions : public Options {
|
||||
bool throw_deprecation = false;
|
||||
bool trace_deprecation = false;
|
||||
bool trace_sync_io = false;
|
||||
bool trace_tls = false;
|
||||
bool trace_warnings = false;
|
||||
std::string unhandled_rejections;
|
||||
std::string userland_loader;
|
||||
|
||||
Reference in new issue
Block a user