Skip to content

Commit

Permalink
feat: es 에 장소 저장 실패하는 경우 에러 로그 추가 #163
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed Nov 23, 2024
1 parent e2de709 commit 441969d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class SearchService {
id: `${place.id}`,
document: data,
});
} catch (e) {
} catch (error) {
this.logger.error(
`Elasticsearch에 장소 저장 중 에러가 발생했습니다: ${error}`,
);
throw new ElasticSearchException(place.id);
}
}
Expand Down

0 comments on commit 441969d

Please sign in to comment.