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 6acd445823d75..16a9401371d24 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,11 @@ 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 { - CURRENT == VIRTUAL ? LOG.info("The type of thread detected is: {}", CURRENT) : LOG.debug("The type of thread detected is: {}", CURRENT); + if (CURRENT == VIRTUAL) { + LOG.info("The type of thread detected is: {}", CURRENT); + } else { + LOG.debug("The type of thread detected is: {}", CURRENT); + } } public static ThreadType current() { return CURRENT;