-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
kind/bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Setting the configuration key to adjust log level is not applied on tests
Expected behavior
Log level defined is applied both on running code and on tests
Actual behavior
Log level only applied to running code
To Reproduce
Steps to reproduce the behavior:
- Download an application from the application generator
- Add the following lines to your application.properties
quarkus.log.level=DEBUG
%test.quarkus.log.level=DEBUG
- Add the following lines to your
ExampleResourceorExampleResourceTest
LoggerFactory.getLogger(ExampleResource.class).debug("debug");
LoggerFactory.getLogger(ExampleResource.class).info("info");
- Execute the test
- Notice how only the info message is written
- If you added the logging to the ExampleResource class, execute
./gradlew qDevand notice how both messages appear (debug and info)
Configuration
quarkus.log.level=DEBUG
%test.quarkus.log.level=DEBUGScreenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Build tool: gradle
- IDE: Intellij
Additional context
(Add any other context about the problem here.)
rgmz
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working