Skip to content

Commit 12a2dc6

Browse files
committed
chore[log]: 로그 출력 방식 통일
1 parent d76680a commit 12a2dc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

backend/src/main/java/com/ai/lawyer/global/config/EmbeddedRedisConfig.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.ai.lawyer.global.config;
22

3+
import lombok.extern.slf4j.Slf4j;
34
import org.springframework.beans.factory.annotation.Value;
45
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
56
import org.springframework.context.annotation.Configuration;
@@ -11,6 +12,7 @@
1112
import jakarta.annotation.PreDestroy;
1213

1314
@Configuration
15+
@Slf4j
1416
@ConditionalOnProperty(name = "spring.data.redis.embedded", havingValue = "true", matchIfMissing = true)
1517
public class EmbeddedRedisConfig {
1618

@@ -29,10 +31,10 @@ public void startRedis() {
2931

3032
if (!redisServer.isActive()) {
3133
redisServer.start();
32-
System.out.println("=== Embedded Redis 서버가 포트 " + redisPort + "에서 시작되었습니다 ===");
34+
log.info("=== Embedded Redis 서버가 포트 {}에서 시작되었습니다 ===", redisPort);
3335
}
3436
} catch (Exception e) {
35-
System.err.println("=== Embedded Redis 서버 시작 실패: " + e.getMessage() + " ===");
37+
log.error("=== Embedded Redis 서버 시작 실패: {} ===", e.getMessage());
3638
}
3739
}
3840

@@ -41,7 +43,7 @@ public void startRedis() {
4143
public void stopRedis() {
4244
if (redisServer != null && redisServer.isActive()) {
4345
redisServer.stop();
44-
System.out.println("=== Embedded Redis 서버가 중지되었습니다 ===");
46+
log.info("=== Embedded Redis 서버가 중지되었습니다 ===");
4547
}
4648
}
4749
}

0 commit comments

Comments
 (0)