Skip to content

Commit 788dfd5

Browse files
committed
이미지 작업이 제대로 되는지 로그 확인
1 parent b623ec0 commit 788dfd5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/src/main/java/_team/onmyway/service/ImageService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import _team.onmyway.entity.Photos;
44
import _team.onmyway.entity.Place;
55
import _team.onmyway.repository.PhotosRepository;
6+
import lombok.extern.slf4j.Slf4j;
67
import org.springframework.stereotype.Service;
78
import org.springframework.web.reactive.function.client.WebClient;
89
import org.springframework.beans.factory.annotation.Value;
@@ -12,6 +13,7 @@
1213
import java.util.Map;
1314

1415
@Service
16+
@Slf4j
1517
public 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("") // 혹시 모를 빈 응답 처리

0 commit comments

Comments
 (0)