]> source.dussan.org Git - sonarqube.git/commitdiff
DO NOT MERGE removal of StatusPrinter task/sma/SONAR-22676_DO-NOT-MERGE 3365/head
authorSteve Marion <steve.marion@sonarsource.com>
Fri, 23 Aug 2024 09:57:26 +0000 (11:57 +0200)
committerSteve Marion <steve.marion@sonarsource.com>
Fri, 23 Aug 2024 09:57:26 +0000 (11:57 +0200)
sonar-core/src/main/java/org/sonar/core/config/Logback.java

index c327b2a2fa4b2aeed7c5dfd21bf6916524376a5d..90d944bc1ed3140335fbb81d9a0003af5ebecf88 100644 (file)
@@ -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) {