Skip to content

Commit 0084f82

Browse files
committed
[feat] concept tag 에러 로깅을 추가해요
1 parent 25c938b commit 0084f82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/moplus/moplus_server/domain/concept/repository/ConceptTagRepository.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ default void existsByIdElseThrow(Set<Long> ids) {
2323

2424
default List<ConceptTag> findAllByIdsElseThrow(Set<Long> ids) {
2525
List<ConceptTag> conceptTags = findAllById(ids);
26+
List<Long> foundIds = conceptTags.stream()
27+
.map(ConceptTag::getId)
28+
.toList();
29+
2630
if (conceptTags.size() != ids.size()) {
2731
throw new NotFoundException(ErrorCode.CONCEPT_TAG_NOT_FOUND_IN_LIST,
28-
"targetIds: " + ids + " / foundIds: " + conceptTags);
32+
"targetIds: " + ids + " / foundIds: " + foundIds);
2933
}
3034
return conceptTags;
3135
}

0 commit comments

Comments
 (0)