pact-php icon indicating copy to clipboard operation
pact-php copied to clipboard

Pact-PHP <=9.x.x - How to disable log-output?

Open 4d4ch4u32 opened this issue 4 years ago • 0 comments

Currently, when I run a phpunit test which uses the pact mock-service, I get the following output

[2022-03-04T14:36:51.001224+00:00] server.debug: start background command: /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-mock-service service --consumer='cart-service' --provider='product-service' --pact-dir='/srv/api/pacts' --pact-file-write-mode=merge --host=localhost --port=9999 --log-level='INFO' --cors=true --log='/srv/api/var/log/test/pact' [] []

instead of the phpunit-default output for each test

.

Although I have configured INFO as log level, these debug information are printed.

4d4ch4u32 avatar Mar 04 '22 14:03 4d4ch4u32