File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
backend/src/main/java/com/ai/lawyer/global/config Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11package com .ai .lawyer .global .config ;
22
3+ import lombok .extern .slf4j .Slf4j ;
34import org .springframework .beans .factory .annotation .Value ;
45import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
56import org .springframework .context .annotation .Configuration ;
1112import jakarta .annotation .PreDestroy ;
1213
1314@ Configuration
15+ @ Slf4j
1416@ ConditionalOnProperty (name = "spring.data.redis.embedded" , havingValue = "true" , matchIfMissing = true )
1517public 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}
You can’t perform that action at this time.
0 commit comments