]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "NO-JIRA Remove use of deprecated StatusPrinter class" due to Junit failures...
authorMatteo Mara <matteo.mara@sonarsource.com>
Wed, 31 Jul 2024 08:47:00 +0000 (10:47 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 31 Jul 2024 20:02:43 +0000 (20:02 +0000)
This reverts commit 9dda0d3f68a6306078c2928154c59a6f7baf56c5.

sonar-core/src/main/java/org/sonar/core/config/Logback.java

index a8eea88ff408a75a5f4e255ef0441add311c6d84..c327b2a2fa4b2aeed7c5dfd21bf6916524376a5d 100644 (file)
@@ -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.StatusPrinter2;
+import ch.qos.logback.core.util.StatusPrinter;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
@@ -74,8 +74,7 @@ public class Logback {
     } finally {
       IOUtils.closeQuietly(input);
     }
-    var statusPrinter2 = new StatusPrinter2();
-    statusPrinter2.printInCaseOfErrorsOrWarnings(lc);
+    StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
   }
 
   private static LoggerContext configureContext(LoggerContext context, Map<String, String> substitutionVariables) {