aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2023-08-23 12:31:28 +0200
committersonartech <sonartech@sonarsource.com>2023-08-23 20:03:06 +0000
commit87f121a1a79961ae80e60092ae8ab99fcb98b396 (patch)
tree9c0c3c0c4103724d0c8a505f02b6dcc5f03a338a /server/sonar-server-common
parente0a8ca6a80271b832a8ddb8a569e80b589282f2a (diff)
downloadsonarqube-87f121a1a79961ae80e60092ae8ab99fcb98b396.tar.gz
sonarqube-87f121a1a79961ae80e60092ae8ab99fcb98b396.zip
SONAR-19705 Prevent Spring to log in DEBUG mode
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/log/ServerProcessLogging.java8
1 files changed, 5 insertions, 3 deletions
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 93566010bfa..2269b9a32d1 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
@@ -25,7 +25,6 @@ import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.ConsoleAppender;
import ch.qos.logback.core.encoder.Encoder;
-import com.google.common.collect.ImmutableSet;
import java.util.Set;
import javax.annotation.CheckForNull;
import org.sonar.process.ProcessId;
@@ -41,7 +40,7 @@ import static org.sonar.process.logging.RootLoggerConfig.newRootLoggerConfigBuil
public abstract class ServerProcessLogging {
public static final String STARTUP_LOGGER_NAME = "startup";
- protected static final Set<String> JMX_RMI_LOGGER_NAMES = ImmutableSet.of(
+ protected static final Set<String> JMX_RMI_LOGGER_NAMES = Set.of(
"javax.management.remote.timeout",
"javax.management.remote.misc",
"javax.management.remote.rmi",
@@ -51,7 +50,7 @@ public abstract class ServerProcessLogging {
"sun.rmi.transport.misc",
"sun.rmi.server.call",
"sun.rmi.dgc");
- protected static final Set<String> LOGGER_NAMES_TO_TURN_OFF = ImmutableSet.of(
+ protected static final Set<String> LOGGER_NAMES_TO_TURN_OFF = Set.of(
// mssql driver
"com.microsoft.sqlserver.jdbc.internals",
"com.microsoft.sqlserver.jdbc.ResultSet",
@@ -99,6 +98,9 @@ public abstract class ServerProcessLogging {
builder.immutableLevel("com.hazelcast.replicatedmap.impl.operation.SyncReplicatedMapDataOperation", Level.INFO);
// Netty (used by Elasticsearch)
builder.immutableLevel("io.netty.buffer.PoolThreadCache", Level.INFO);
+ // Spring related
+ builder.immutableLevel("org.springframework", Level.WARN);
+ builder.immutableLevel("org.sonar.core.platform.PriorityBeanFactory", Level.WARN);
extendLogLevelConfiguration(builder);