testcontainers / testcontainers/testcontainers-java

Allow logging level to be specified during container creation.

Open
#4,717 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

modules/jdbc resolution/waiting-for-info
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

I'm currently trying to debug an issue where I can run a postgresql container via the command line and I see that the database starts just fine. But testcontainers throws an IllegalArgumentException -> ContainerLaunchException (apparently it thinksthat the PostgreSQLContainer doesn't start properly). I see in the source code that logging is hard-coded to be turned off during the startup process. It would be nice to have a method of changing this value since the information provided is not very useful for debugging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the PostgreSQLContainer startup path and trace where logging is disabled during container creation. Identify the existing hard-coded setting and the container-creation entry point, then make the logging level configurable and verify that startup diagnostics can be enabled when launch fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, postgresql
Domain
devops, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.