Skip to content

Noisy logging #1251

@TimothyJones

Description

@TimothyJones

Software versions

Please provide at least OS and version of pact-js

  • OS: Mac OSX 14.4.1
  • Consumer Pact library: pact-js 13.1.5
  • Provider Pact library: N/A
  • Node Version: v20.12.1

Issue Checklist

Please confirm the following:

  • I have upgraded to the latest
  • I have the read the FAQs in the Readme
  • I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
  • I have set my log level to debug and attached a log file showing the complete request/response cycle
  • For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem

Expected behaviour

Default run doesn't print any logs from pact internals

Actual behaviour

Default run prints a lot of logs like this:

2024-11-17T06:17:44.288511Z  INFO tokio-runtime-worker pact_mock_server::hyper_server: Received request POST /foo/bar/whatever
2024-11-17T06:17:44.289298Z  INFO tokio-runtime-worker pact_mock_server::hyper_server: Request matched, sending response

Steps to reproduce

Run a consumer test

Relevant log files

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviortriageThis issue is yet to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions