From 1377eaacefb698f22c05af5c4c11b611d5445345 Mon Sep 17 00:00:00 2001 From: Antoine Vigneau Date: Thu, 24 Aug 2023 10:24:19 +0200 Subject: [PATCH] SONAR-19705 Prevent Network-related logs from noisy third-party libraries --- .../java/org/sonar/server/log/ServerProcessLogging.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/log/ServerProcessLogging.java b/server/sonar-server-common/src/main/java/org/sonar/server/log/ServerProcessLogging.java index 2269b9a32d1..c3d6cd21be7 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/log/ServerProcessLogging.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/log/ServerProcessLogging.java @@ -101,6 +101,14 @@ public abstract class ServerProcessLogging { // Spring related builder.immutableLevel("org.springframework", Level.WARN); builder.immutableLevel("org.sonar.core.platform.PriorityBeanFactory", Level.WARN); + // Network-communication related + builder.immutableLevel("org.apache.http", Level.WARN); + builder.immutableLevel("okhttp3", Level.WARN); + builder.immutableLevel("sun.net", Level.WARN); + // JDK security + builder.immutableLevel("jdk.event.security", Level.WARN); + // GitHub library + builder.immutableLevel("org.kohsuke", Level.WARN); extendLogLevelConfiguration(builder); -- 2.39.5