Skip to content

Commit

Permalink
[hotfix] chore: 캐시 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkonu committed Jan 12, 2025
1 parent 4dd6a65 commit 6135cd8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.recordy.server.place.repository.impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.locationtech.jts.geom.Point;
import org.recordy.server.common.message.ErrorMessage;
import org.recordy.server.place.controller.dto.response.PlaceGetResponse;
Expand All @@ -17,6 +18,7 @@
import java.util.List;
import java.util.Objects;

@Slf4j
@RequiredArgsConstructor
@Transactional(readOnly = true)
@Repository
Expand All @@ -36,7 +38,8 @@ public Place save(Place place) {

@Override
public void cache(Place place) {
placeRedisRepository.save(PlaceCacheEntity.from(place));
PlaceCacheEntity entity = placeRedisRepository.save(PlaceCacheEntity.from(place));
log.info("entity with id {} and platformId {} is cached", entity.getId(), entity.getPlatformId());
}

@Override
Expand Down

0 comments on commit 6135cd8

Please sign in to comment.