]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA Remove use of deprecated StatusPrinter class
authorMatteo Mara <matteo.mara@sonarsource.com>
Mon, 8 Jul 2024 13:00:17 +0000 (15:00 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 8 Jul 2024 20:02:37 +0000 (20:02 +0000)
sonar-core/src/main/java/org/sonar/core/config/Logback.java

index c327b2a2fa4b2aeed7c5dfd21bf6916524376a5d..a8eea88ff408a75a5f4e255ef0441add311c6d84 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.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) {