You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/03/20 14:04:54 UTC

(camel) branch j21-log-noise created (now fa499c308fe)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch j21-log-noise
in repository https://gitbox.apache.org/repos/asf/camel.git


      at fa499c308fe CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger

This branch includes the following new commits:

     new fa499c308fe CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch j21-log-noise
in repository https://gitbox.apache.org/repos/asf/camel.git

commit fa499c308fe3f4b70b24ba6edaeea986448e13ac
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 20 15:04:36 2024 +0100

    CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger
---
 .../src/main/java21/org/apache/camel/util/concurrent/ThreadType.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java b/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java
index 0bc527ecf8e..6acd445823d 100644
--- a/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java
+++ b/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java
@@ -30,7 +30,7 @@ public enum ThreadType {
     private static final Logger LOG = LoggerFactory.getLogger(ThreadType.class);
     private static final ThreadType CURRENT = Boolean.getBoolean("camel.threads.virtual.enabled") ? VIRTUAL : PLATFORM;
     static {
-        LOG.info("The type of thread detected is {}", CURRENT);
+        CURRENT == VIRTUAL ? LOG.info("The type of thread detected is: {}", CURRENT) : LOG.debug("The type of thread detected is: {}", CURRENT);
     }
     public static ThreadType current() {
         return CURRENT;