aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2024-07-08 15:00:17 +0200
committersonartech <sonartech@sonarsource.com>2024-07-08 20:02:37 +0000
commit443491c44c6d33ab11bbba4d0ff1bea02b5d1ac5 (patch)
tree0ed3175c9820fbc5144e21868732e31ce5db2afe
parentcf34eabca3e4c7cd280d0e06ff8f1e27f04ca8ea (diff)
downloadsonarqube-443491c44c6d33ab11bbba4d0ff1bea02b5d1ac5.tar.gz
sonarqube-443491c44c6d33ab11bbba4d0ff1bea02b5d1ac5.zip
NO-JIRA Remove use of deprecated StatusPrinter class
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/Logback.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/Logback.java b/sonar-core/src/main/java/org/sonar/core/config/Logback.java
index c327b2a2fa4..a8eea88ff40 100644
--- a/sonar-core/src/main/java/org/sonar/core/config/Logback.java
+++ b/sonar-core/src/main/java/org/sonar/core/config/Logback.java
@@ -22,7 +22,7 @@ package org.sonar.core.config;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import ch.qos.logback.core.joran.spi.JoranException;
-import ch.qos.logback.core.util.StatusPrinter;
+import ch.qos.logback.core.util.StatusPrinter2;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
@@ -74,7 +74,8 @@ public class Logback {
} finally {
IOUtils.closeQuietly(input);
}
- StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
+ var statusPrinter2 = new StatusPrinter2();
+ statusPrinter2.printInCaseOfErrorsOrWarnings(lc);
}
private static LoggerContext configureContext(LoggerContext context, Map<String, String> substitutionVariables) {