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); } } 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(() -> {