Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container output (log.enabled=true) gets mixed with regular maven output #1821

Open
jakub-bochenski opened this issue Sep 12, 2024 · 0 comments

Comments

@jakub-bochenski
Copy link
Contributor

Description

I'm using d-m-p to run the application for tests.
Unfortunately the output from tests and the container get's mixed up.
E.g.

29:57.143 [main] DEBUG org.apache.http.headers -91b480> [2024-09-12T16:29:57.20 >>3Z]   at java.base/java.lang.Thread.run(Thread.java:829)
 Accept: application/json

Which comes from test log line:

29:57.143 [main] DEBUG org.apache.http.headers -  Accept: application/json

and the container line:

1b480> [2024-09-12T16:29:57.20 >>3Z]   at java.base/java.lang.Thread.run(Thread.java:829)

I understand the output is coming from parallel processes and this is not a trivial problem.

Yet it should be possible to use some line-buffering to at least make the lines not mixed up with each other?

On the other hand I'm not sure how much of this can be controlled by the plugin and how much of it is up to Maven process itself.

Maybe it could be improved by different test logging configuration? I'm using Logback ConsoleAppender

Info

  • docker-maven-plugin version : 0.45.0
  • Maven version (mvn -v) : 3.6.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant