Skip to content

Where can I see log entries when I set PACT_BROKER_LOG_LEVEL=DEBUG? #503

Answered by bethesque
cgrim-cz asked this question in Q&A
Discussion options

You must be logged in to vote

Use this docker-compose and run:

docker-compose up pact-broker

then in another terminal run:

docker-compose up publish
version: "3"

services:
  pact-broker:
    image: pactfoundation/pact-broker:2.84.0.0
    ports:
      - "9292:9292"
    environment:
      PACT_BROKER_DATABASE_URL: "sqlite:////tmp/pact_broker_database.sqlite3"
      PACT_BROKER_LOG_LEVEL: DEBUG
      PACT_BROKER_SQL_LOG_LEVEL: NONE

  publish:
    image: pactfoundation/pact-cli:0.50.0.4
    depends_on:
      - pact-broker
    environment:
      - PACT_BROKER_BASE_URL=http://pact-broker:9292
      - GIT_BRANCH=main
    command: broker publish /pact/example/pacts --consumer-app-version 1f7b544e19770c9e9f2df05947d1b168e2…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cgrim-cz
Comment options

@bethesque
Comment options

Answer selected by cgrim-cz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants