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-ce-task | |
parent | 64ae11abcdc2117c247a5364f2543144789ab175 (diff) | |
download | sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.tar.gz sonarqube-6c88709145ecf40500f5600d420e04c537f4c0a0.zip |
[NOJIRA] Remove usage of deprecated Loggers. (#8527)
Diffstat (limited to 'server/sonar-ce-task')
-rw-r--r-- | server/sonar-ce-task/src/main/java/org/sonar/ce/task/container/TaskContainerImpl.java | 4 | ||||
-rw-r--r-- | server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/ComputationStepExecutor.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/container/TaskContainerImpl.java b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/container/TaskContainerImpl.java index f9711d76d40..c8a2441e45e 100644 --- a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/container/TaskContainerImpl.java +++ b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/container/TaskContainerImpl.java @@ -19,7 +19,7 @@ */ package org.sonar.ce.task.container; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.LoggerFactory; import org.sonar.core.platform.ContainerPopulator; import org.sonar.core.platform.SpringComponentContainer; @@ -51,7 +51,7 @@ public class TaskContainerImpl extends SpringComponentContainer implements TaskC try { stopComponents(); } catch (Throwable t) { - Loggers.get(TaskContainerImpl.class).error("Cleanup of container failed", t); + LoggerFactory.getLogger(TaskContainerImpl.class).error("Cleanup of container failed", t); } } } diff --git a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/ComputationStepExecutor.java b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/ComputationStepExecutor.java index 5ead92b611a..bd75567c842 100644 --- a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/ComputationStepExecutor.java +++ b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/ComputationStepExecutor.java @@ -21,8 +21,8 @@ package org.sonar.ce.task.step; import javax.annotation.CheckForNull; 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 org.sonar.ce.task.CeTaskInterrupter; import org.sonar.core.util.logs.Profiler; import org.springframework.beans.factory.annotation.Autowired; @@ -32,7 +32,7 @@ import static java.lang.String.format; import static java.util.Objects.requireNonNull; public final class ComputationStepExecutor { - private static final Logger LOGGER = Loggers.get(ComputationStepExecutor.class); + private static final Logger LOGGER = LoggerFactory.getLogger(ComputationStepExecutor.class); private final ComputationSteps steps; private final CeTaskInterrupter taskInterrupter; |