aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Marion <steve.marion@sonarsource.com>2024-08-23 11:57:26 +0200
committerSteve Marion <steve.marion@sonarsource.com>2024-08-23 11:57:26 +0200
commit468c46c5b8e34c18e33785716c3deb9134dd43ea (patch)
tree86dc30b47f99c9f64ba9865ac7e55a574b5d762a
parent52f852bcba57febc5f49e0c51dcc0ccbb100aa02 (diff)
downloadsonarqube-task/sma/SONAR-22676_DO-NOT-MERGE.tar.gz
sonarqube-task/sma/SONAR-22676_DO-NOT-MERGE.zip
DO NOT MERGE removal of StatusPrintertask/sma/SONAR-22676_DO-NOT-MERGE
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/Logback.java5
1 files changed, 4 insertions, 1 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..90d944bc1ed 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
@@ -23,6 +23,7 @@ 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;
@@ -39,6 +40,8 @@ import org.slf4j.LoggerFactory;
*/
public class Logback {
+ private static final StatusPrinter2 statusPrinter = new StatusPrinter2();
+
private Logback() {
// only statics
}
@@ -74,7 +77,7 @@ public class Logback {
} finally {
IOUtils.closeQuietly(input);
}
- StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
+ statusPrinter.printInCaseOfErrorsOrWarnings(lc);
}
private static LoggerContext configureContext(LoggerContext context, Map<String, String> substitutionVariables) {