File tree Expand file tree Collapse file tree
backend/src/main/java/_team/onmyway/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import _team .onmyway .entity .Photos ;
44import _team .onmyway .entity .Place ;
55import _team .onmyway .repository .PhotosRepository ;
6+ import lombok .extern .slf4j .Slf4j ;
67import org .springframework .stereotype .Service ;
78import org .springframework .web .reactive .function .client .WebClient ;
89import org .springframework .beans .factory .annotation .Value ;
1213import java .util .Map ;
1314
1415@ Service
16+ @ Slf4j
1517public class ImageService {
1618
1719 private final WebClient webClient ;
@@ -51,6 +53,7 @@ public Mono<String> getImageURL(Place p) {
5153 if (list == null || list .isEmpty ()) {
5254 return "" ; // 결과 없으면 빈 문자열
5355 }
56+ log .info ((String )list .get (0 ).get ("thumbnail" ));
5457 return (String ) list .get (0 ).get ("thumbnail" );
5558 })
5659 .defaultIfEmpty ("" ) // 혹시 모를 빈 응답 처리
You can’t perform that action at this time.
0 commit comments