From 6c88709145ecf40500f5600d420e04c537f4c0a0 Mon Sep 17 00:00:00 2001 From: Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> Date: Tue, 13 Jun 2023 14:11:28 +0200 Subject: [NOJIRA] Remove usage of deprecated Loggers. (#8527) --- .../sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-ce-common') diff --git a/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java b/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java index e0af41a2682..88b77baec5c 100644 --- a/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java +++ b/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java @@ -37,7 +37,7 @@ import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.sonar.api.server.ServerSide; import org.sonar.api.utils.System2; -import org.sonar.api.utils.log.Loggers; +import org.slf4j.LoggerFactory; import org.sonar.ce.task.CeTask; import org.sonar.core.util.UuidFactory; import org.sonar.core.util.stream.MoreCollectors; @@ -305,7 +305,7 @@ public class CeQueueImpl implements CeQueue { if (deletedTasks == 1) { dbSession.commit(); } else { - Loggers.get(CeQueueImpl.class).debug( + LoggerFactory.getLogger(CeQueueImpl.class).debug( "Remove rolled back because task in queue with uuid {} and status {} could not be deleted", taskUuid, expectedQueueDtoStatus); dbSession.rollback(); -- cgit v1.2.3