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 <[email protected]> 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;
