From 21b25e6062bd2ce1f6b786b20b551dab35e9f7f7 Mon Sep 17 00:00:00 2001 From: Gyuhyeok99 <126947828+Gyuhyeok99@users.noreply.github.com> Date: Thu, 30 Oct 2025 23:36:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EB=A1=9C=EA=B7=B8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/post/service/UpdateViewCountService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/example/solidconnection/community/post/service/UpdateViewCountService.java b/src/main/java/com/example/solidconnection/community/post/service/UpdateViewCountService.java index 89a6f341a..42a5f8b95 100644 --- a/src/main/java/com/example/solidconnection/community/post/service/UpdateViewCountService.java +++ b/src/main/java/com/example/solidconnection/community/post/service/UpdateViewCountService.java @@ -23,10 +23,8 @@ public class UpdateViewCountService { @Transactional @Async public void updateViewCount(String key) { - log.info("updateViewCount Processing key: {} in thread: {}", key, Thread.currentThread().getName()); Long postId = redisUtils.getPostIdFromPostViewCountRedisKey(key); Post post = postRepository.getById(postId); postRepository.increaseViewCount(postId, redisService.getAndDelete(key)); - log.info("updateViewCount Updated post id: {} with view count from key: {}", postId, key); } } From 36a68ab840e0ab8f243dfeec01b791f20078fe07 Mon Sep 17 00:00:00 2001 From: Gyuhyeok99 Date: Mon, 3 Nov 2025 18:26:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EB=A1=9C=EA=B7=B8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solidconnection/scheduler/UpdateViewCountScheduler.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/example/solidconnection/scheduler/UpdateViewCountScheduler.java b/src/main/java/com/example/solidconnection/scheduler/UpdateViewCountScheduler.java index 746b50927..9a5561728 100644 --- a/src/main/java/com/example/solidconnection/scheduler/UpdateViewCountScheduler.java +++ b/src/main/java/com/example/solidconnection/scheduler/UpdateViewCountScheduler.java @@ -6,7 +6,6 @@ import com.example.solidconnection.util.RedisUtils; import java.util.List; import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; @@ -18,7 +17,6 @@ @Component @EnableScheduling @EnableAsync -@Slf4j public class UpdateViewCountScheduler { private final RedisUtils redisUtils; @@ -29,7 +27,6 @@ public class UpdateViewCountScheduler { @Scheduled(fixedDelayString = "${view.count.scheduling.delay}") public void updateViewCount() { - log.info("updateViewCount thread: {}", Thread.currentThread().getName()); List itemViewCountKeys = redisUtils.getKeysOrderByExpiration(VIEW_COUNT_KEY_PATTERN.getValue()); itemViewCountKeys.forEach(key -> asyncExecutor.submit(() -> {