From fa499c308fe3f4b70b24ba6edaeea986448e13ac Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Wed, 20 Mar 2024 15:04:36 +0100 Subject: [PATCH] CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger --- .../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 0bc527ecf8e52..6acd445823d75 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;