diff options
author | Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> | 2023-06-13 14:11:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-13 20:03:37 +0000 |
commit | 6c88709145ecf40500f5600d420e04c537f4c0a0 (patch) | |
tree | 5cca9ab49cb7335eb92ffe82025119b3441ac091 /server/sonar-process/src | |
parent | 64ae11abcdc2117c247a5364f2543144789ab175 (diff) | |
download | sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.tar.gz sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.zip |
[NOJIRA] Remove usage of deprecated Loggers. (#8527)
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/FileUtils2.java | 6 | ||||
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/NetworkUtilsImpl.java | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/FileUtils2.java b/server/sonar-process/src/main/java/org/sonar/process/FileUtils2.java index 7d8085d6380..31fbc41df1a 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/FileUtils2.java +++ b/server/sonar-process/src/main/java/org/sonar/process/FileUtils2.java @@ -31,8 +31,8 @@ import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.util.EnumSet; import javax.annotation.Nullable; -import org.sonar.api.utils.log.Logger; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import static java.lang.String.format; import static java.util.Objects.requireNonNull; @@ -42,7 +42,7 @@ import static java.util.Objects.requireNonNull; * {@link org.apache.commons.io.FileUtils Common IO FileUtils} class. */ public final class FileUtils2 { - private static final Logger LOG = Loggers.get(FileUtils2.class); + private static final Logger LOG = LoggerFactory.getLogger(FileUtils2.class); private static final String DIRECTORY_CAN_NOT_BE_NULL = "Directory can not be null"; private static final EnumSet<FileVisitOption> FOLLOW_LINKS = EnumSet.of(FileVisitOption.FOLLOW_LINKS); diff --git a/server/sonar-process/src/main/java/org/sonar/process/NetworkUtilsImpl.java b/server/sonar-process/src/main/java/org/sonar/process/NetworkUtilsImpl.java index 0baa8bb2dc5..15a37fbe8f3 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/NetworkUtilsImpl.java +++ b/server/sonar-process/src/main/java/org/sonar/process/NetworkUtilsImpl.java @@ -33,8 +33,8 @@ import java.util.Optional; import java.util.OptionalInt; import java.util.Set; import java.util.function.Predicate; -import org.sonar.api.utils.log.Logger; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import static java.lang.String.format; @@ -42,7 +42,7 @@ public class NetworkUtilsImpl implements NetworkUtils { private static final Set<Integer> PORTS_ALREADY_ALLOCATED = new HashSet<>(); private static final int PORT_MAX_TRIES = 50; - private static final Logger LOG = Loggers.get(NetworkUtilsImpl.class); + private static final Logger LOG = LoggerFactory.getLogger(NetworkUtilsImpl.class); public static final NetworkUtils INSTANCE = new NetworkUtilsImpl(); |