From: Richard Levitte Date: Fri, 28 Apr 2017 07:20:05 +0000 (+0200) Subject: TLSProxy: When in debug mode, show the exact subprocess commands X-Git-Tag: OpenSSL_1_1_1-pre1~1640 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=46d5e2b42e00ec392bf3326743519bc25136db09 TLSProxy: When in debug mode, show the exact subprocess commands When you want to debug a test that goes wrong, it's useful to know exactly what subprocess commands are run. Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3342) --- diff --git a/util/TLSProxy/Proxy.pm b/util/TLSProxy/Proxy.pm index aaef753cd6..a826cb5257 100644 --- a/util/TLSProxy/Proxy.pm +++ b/util/TLSProxy/Proxy.pm @@ -171,6 +171,9 @@ sub start if ($self->serverflags ne "") { $execcmd .= " ".$self->serverflags; } + if ($self->debug) { + print STDERR "Server command: $execcmd\n"; + } exec($execcmd); } $self->serverpid($pid); @@ -232,6 +235,9 @@ sub clientstart if (defined $self->sessionfile) { $execcmd .= " -ign_eof"; } + if ($self->debug) { + print STDERR "Client command: $execcmd\n"; + } exec($execcmd); } }