Skip to content

Quarkus log level configuration not applied on tests #8574

@oscarfh

Description

@oscarfh

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:

  1. Download an application from the application generator
  2. Add the following lines to your application.properties
quarkus.log.level=DEBUG
%test.quarkus.log.level=DEBUG
  1. Add the following lines to your ExampleResource or ExampleResourceTest
LoggerFactory.getLogger(ExampleResource.class).debug("debug");
LoggerFactory.getLogger(ExampleResource.class).info("info");
  1. Execute the test
  2. Notice how only the info message is written
  3. If you added the logging to the ExampleResource class, execute ./gradlew qDev and notice how both messages appear (debug and info)

Configuration

quarkus.log.level=DEBUG
%test.quarkus.log.level=DEBUG

Screenshots
(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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions