diff --git a/src/main/java/com/asap/server/persistence/domain/user/User.java b/src/main/java/com/asap/server/persistence/domain/user/User.java index a8941d1f..bcf1f454 100644 --- a/src/main/java/com/asap/server/persistence/domain/user/User.java +++ b/src/main/java/com/asap/server/persistence/domain/user/User.java @@ -20,6 +20,7 @@ import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; +import lombok.ToString; import org.hibernate.annotations.ColumnDefault; @Entity @@ -27,6 +28,7 @@ @Builder @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor(access = AccessLevel.PRIVATE) +@ToString public class User extends AuditingTimeEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/src/main/java/com/asap/server/service/meeting/MeetingRetrieveService.java b/src/main/java/com/asap/server/service/meeting/MeetingRetrieveService.java index 203cedef..35e31a8c 100644 --- a/src/main/java/com/asap/server/service/meeting/MeetingRetrieveService.java +++ b/src/main/java/com/asap/server/service/meeting/MeetingRetrieveService.java @@ -20,10 +20,12 @@ import java.util.List; import java.util.Map; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @Service @RequiredArgsConstructor +@Slf4j public class MeetingRetrieveService { private final MeetingRepository meetingRepository; private final UserRetrieveService userRetrieveService; @@ -52,10 +54,15 @@ public BestMeetingTimeDto getBestMeetingTime(final Long meetingId, final Long us ); Map userIdToUserMap = userRetrieveService.getUserIdToUserMap(meetingId); + log.info( + "user count is " + userCount + "\n " + + "timeBlocks is " + timeBlocks + "\n " + + "bestMeetingTimes is " + bestMeetingTimes + "\n" + + "userIdToUserMap is " + userIdToUserMap + "\n" + ); List bestMeetingTimeWithUsers = bestMeetingTimes.stream() .map(bestMeetingTime -> mapToBestMeetingTimeWithUsers(bestMeetingTime, userIdToUserMap)) .toList(); - return BestMeetingTimeDto.of(userCount, bestMeetingTimeWithUsers); }