Reviewing the contract testing book manuscript and...
# maintainers
m
Reviewing the contract testing book manuscript and saw this test output - the
INFO
log level from the core is getting in the way of this story! 1. Is this configurable by us? Seeing INFO level logs from Hyper is unlikely to be useful to the user 2. I’m going to ask the authors to set log level to ERROR for the purposes of this 😛
y
it’s here https://github.com/pact-foundation/pact-core-mock-server/blob/febf7974b648aeeefb6af3d69dd988051886243e/pact_mock_server/src/hyper_server.rs#L275 here https://github.com/pact-foundation/pact-core-mock-server/blob/febf7974b648aeeefb6af3d69dd988051886243e/pact_mock_server/src/hyper_server.rs#L185 The debug values captured for the incoming and outgoing requests are useful and could be captured for sending in case of failure. and here https://github.com/pact-foundation/pact-reference/blob/efc54d263e7ea53c9511cf389870e790c0158bc3/rust/pact_matching/src/lib.rs#L1665 There are other instances of
info!
statements https://github.com/search?q=repo%3Apact-foundation%2Fpact-reference+info%21&type=code I think lib authors can suppress log output by piping to a buffer (or file) and reading from there if necessary (fetch_log_buffer_as_json)