From ae0b4f027b6158413fab6fe52d848706d1fbcdc8 Mon Sep 17 00:00:00 2001 From: Siim Mardus Date: Mon, 27 May 2024 15:21:30 +0300 Subject: [PATCH] Log out the output from pact verifying OutputLog contains useful information about what happens with Pact verification. --- src/pact_verifier.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pact_verifier.erl b/src/pact_verifier.erl index f552e34..cf0b4a0 100644 --- a/src/pact_verifier.erl +++ b/src/pact_verifier.erl @@ -199,9 +199,10 @@ verify_pacts(VerifierRef, ProviderOpts, ProviderPortDetails) -> "", Args ), - {Output, _OutputLog} = pact_utils:run_executable_async( + {Output, OutputLog} = pact_utils:run_executable_async( EscriptPath ++ " pactffi_nif verify_file_pacts " ++ ArgsString ), + io:format(OutputLog), Output end, Output2 = @@ -246,9 +247,10 @@ verify_pacts(VerifierRef, ProviderOpts, ProviderPortDetails) -> "", Args1 ), - {Output3, _OutputLog3} = pact_utils:run_executable_async( + {Output3, OutputLog3} = pact_utils:run_executable_async( EscriptPath ++ " pactffi_nif verify_broker_pacts " ++ ArgsString1 ), + io:format(OutputLog3), Output3 end, case Protocol of