Log regression in 1.11.0.CR1 with native build and yaml configuration
See original GitHub issueDescribe the bug Log level isn’t set using the following snippet:
Logger log = Logger.getLogger(GreetingResource.class);
log.debug("hello debug");
log.info("hello info");
Please note this is a regression in 1.11.0.CR1 compared to 1.10.5.Final.
Expected behavior Logging in DEBUG should be shown in the application output with both builds.
Actual behavior Only INFO level is shown in native whereas both are with jvm build.
To Reproduce I have setup a public repo (https://github.com/matthyx/quarkus-getting-started) with 2 branches containing the same example in both versions.
Steps to reproduce the behavior:
- git clone https://github.com/matthyx/quarkus-getting-started.git
- ./mvnw package
- ./mvnw package -Pnative -Dquarkus.native.container-build=true
- cd mytest
- …/target/getting-started-1.0.0-SNAPSHOT-runner
- (separate terminal) curl http://127.0.0.1:8080/hello
- java -jar …/target/getting-started-1.0.0-SNAPSHOT-runner.jar
- (separate terminal) curl http://127.0.0.1:8080/hello
Configuration
# src/main/resources/application.yml
quarkus:
log:
min-level: DEBUG
# config/application.yml
quarkus:
http:
port: 18080
log:
category:
"org.acme.getting.started":
level: TRACE
Environment (please complete the following information):
- Output of
uname -a
orver
: Linux parrot 5.9.0-2parrot1-amd64 #1 SMP Debian 5.9.6-2parrot1 (2020-11-17) x86_64 GNU/Linux - Output of
java -version
: openjdk version “11.0.9.1” 2020-11-04 OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1, mixed mode, sharing) - GraalVM version (if different from Java): quay.io/quarkus/ubi-quarkus-native-image 20.3.0-java11
- Quarkus version or git rev: 1.11.0.CR1
- Build tool (ie. output of
mvnw --version
orgradlew --version
): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
quarkusio/quarkus 1.11.0.Final on GitHub - NewReleases.io
New release quarkusio/quarkus version 1.11.0. ... CR1 with native build and yaml configuration; #14226 - Qute extension methods: fix varargs handling ...
Read more >chore(deps): update dependency io.quarkus:quarkus ... - GitLab
CR1 to 2.2.1 in native mode; #19877 - Native build error on Quarkus 2.2.1. ... dependencies of the HV extension; #14229 - Log...
Read more >Changelog - Google Git
aws2-quarkus-client Verify that no client except quarkus one is used during test #3447; Deprecate / remove quarkus.camel.main.enabled configuration property # ...
Read more >Michael Redlich, Author at Mobile Monitoring Solutions
Build 30 of the JDK 19 early-access builds was made available this past week, ... GraalVM Native Debugger for Java; and clickable URLs...
Read more >Debian -- Source Packages in "stretch"
... android-platform-frameworks-native (1:7.0.0+r33-1); android-platform-libcore (7.0.0+r33-1) ... golang-github-ghodss-yaml (0.0~git20150909.0.73d445a-2) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve replicated the issue, looking into it.
@galderz well done!