From 21f7ec12655aeeddf469d18ba8faaa70180b01cf Mon Sep 17 00:00:00 2001 From: somin <70891072+somsom13@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:22:43 +0900 Subject: [PATCH] =?UTF-8?q?Hotfix:=20=EB=85=B8=EB=9E=98=20=EC=BA=90?= =?UTF-8?q?=EC=8B=B1=20=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80=20=EB=B0=8F?= =?UTF-8?q?=20=EC=8A=A4=EB=83=85=EC=83=B7=20=EC=B5=9C=EC=8B=A0=ED=99=94=20?= =?UTF-8?q?(#450)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: InMemorySongsScheduler 스냅샷 최신화 및 로그 설정 * fix: 노래 캐시 스케줄러 로깅 추가 --- .../shook/shook/song/application/InMemorySongsScheduler.java | 3 +++ backend/src/main/resources/shook-security | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/shook/shook/song/application/InMemorySongsScheduler.java b/backend/src/main/java/shook/shook/song/application/InMemorySongsScheduler.java index bb7f04a35..f0f102efa 100644 --- a/backend/src/main/java/shook/shook/song/application/InMemorySongsScheduler.java +++ b/backend/src/main/java/shook/shook/song/application/InMemorySongsScheduler.java @@ -2,6 +2,7 @@ import jakarta.annotation.PostConstruct; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @@ -10,6 +11,7 @@ @RequiredArgsConstructor @Transactional(readOnly = true) +@Slf4j @Component public class InMemorySongsScheduler { @@ -23,6 +25,7 @@ public void initialize() { @Scheduled(cron = "${schedules.in-memory-song.cron}") public void recreateCachedSong() { + log.info("InMemorySongsScheduler worked"); inMemorySongs.recreate(songRepository.findAllWithKillingParts()); } } diff --git a/backend/src/main/resources/shook-security b/backend/src/main/resources/shook-security index fdcef5f75..858234c9a 160000 --- a/backend/src/main/resources/shook-security +++ b/backend/src/main/resources/shook-security @@ -1 +1 @@ -Subproject commit fdcef5f75646fe90fd260da8e3a55e05c1bee019 +Subproject commit 858234c9a0ed46deb04e5a092135b26e10c3dbd5