From af50d454f9914a7c5864832087ea73caff1b4aae Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 28 Apr 2017 09:20:05 +0200 Subject: [PATCH] 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) (cherry picked from commit 46d5e2b42e00ec392bf3326743519bc25136db09) --- util/TLSProxy/Proxy.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/TLSProxy/Proxy.pm b/util/TLSProxy/Proxy.pm index d025075b5a..bdb2cd8b5c 100644 --- a/util/TLSProxy/Proxy.pm +++ b/util/TLSProxy/Proxy.pm @@ -159,6 +159,9 @@ sub start if ($self->serverflags ne "") { $execcmd .= " ".$self->serverflags; } + if ($self->debug) { + print STDERR "Server command: $execcmd\n"; + } exec($execcmd); } $self->serverpid($pid); @@ -217,6 +220,9 @@ sub clientstart if ($self->clientflags ne "") { $execcmd .= " ".$self->clientflags; } + if ($self->debug) { + print STDERR "Client command: $execcmd\n"; + } exec($execcmd); } } -- 2.25.1