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:57:10 UTC
(camel) branch main updated: CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger (#13552)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ded915f9fc2 CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger (#13552)
ded915f9fc2 is described below
commit ded915f9fc24a81baf82f65ddd7f6f01e468b46d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 20 15:57:04 2024 +0100
CAMEL-20583: Java 21 - Reduce the noise from the ThreadType logger (#13552)
---
.../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;