Skip to content

Commit 9784179

Browse files
committed
fix : washingHistory log확인
1 parent 5c2d510 commit 9784179

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

back/rushWash/src/main/java/com/rushWash/domain/washings/service/WashingService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
import com.rushWash.domain.washings.domain.repository.WashingHistoryRepository;
1414
import com.rushWash.domain.washings.domain.repository.WashingResultRepository;
1515
import lombok.RequiredArgsConstructor;
16+
import lombok.extern.slf4j.Slf4j;
1617
import org.springframework.data.domain.PageRequest;
1718
import org.springframework.stereotype.Service;
1819

1920
import java.util.List;
2021

2122
@Service
23+
@Slf4j
2224
@RequiredArgsConstructor
2325
public class WashingService {
2426

@@ -94,6 +96,11 @@ public WashingHistory addWashingHistoryByLabelImage(int userId, AnalysisType ana
9496
}
9597

9698
public WashingHistory addWashingHistoryByStainAndLabelImage(int userId, AnalysisType analysisType, String stainImageUrl, String labelImageUrl){
99+
log.info(">>> addWashingHistoryByStainAndLabelImage 호출됨");
100+
log.info("userId: {}", userId);
101+
log.info("analysisType: {}", analysisType);
102+
log.info("stainImageUrl: {}", stainImageUrl);
103+
log.info("labelImageUrl: {}", labelImageUrl);
97104
WashingHistory washingHistory = washingHistoryRepository.save(
98105
WashingHistory.builder()
99106
.userId(userId)
@@ -102,6 +109,7 @@ public WashingHistory addWashingHistoryByStainAndLabelImage(int userId, Analysis
102109
.labelImageUrl(labelImageUrl)
103110
.build()
104111
);
112+
log.info("저장 완료, id: {}", washingHistory.getId());
105113
return washingHistory;
106114
}
107115

0 commit comments

Comments
 (0)