question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Log regression in 1.11.0.CR1 with native build and yaml configuration

See original GitHub issue

Describe 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:

  1. git clone https://github.com/matthyx/quarkus-getting-started.git
  2. ./mvnw package
  3. ./mvnw package -Pnative -Dquarkus.native.container-build=true
  4. cd mytest
  5. …/target/getting-started-1.0.0-SNAPSHOT-runner
  6. (separate terminal) curl http://127.0.0.1:8080/hello
  7. java -jar …/target/getting-started-1.0.0-SNAPSHOT-runner.jar
  8. (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 or ver: 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 or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
galderzcommented, Jan 12, 2021

I’ve replicated the issue, looking into it.

0reactions
vsevelcommented, Jan 12, 2021

@galderz well done!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found