Skip to content

Commit

Permalink
Merge pull request #148 from Nexters/feature/noissue-pin-logs
Browse files Browse the repository at this point in the history
save pin service 로그 추가
  • Loading branch information
emost22 authored Mar 1, 2024
2 parents d9357b2 + 623b398 commit 6c1627a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,32 @@ public int compareTo(PinRedisRes other) {
LexoRank otherRank = LexoRank.parse(other.sequence);
return thisRank.compareTo(otherRank);
}

@Override
public String toString() {
return "PinSaveReq {"
+ ", courseId='"
+ courseId
+ '\''
+ ", pinId='"
+ pinId
+ '\''
+ ", pinName='"
+ pinName
+ '\''
+ ", originName='"
+ originName
+ '\''
+ ", latitude="
+ latitude
+ ", longitude="
+ longitude
+ ", address='"
+ address
+ '\''
+ ", sequence='"
+ sequence
+ '\''
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public PinSaveRes savePin(Long courseId, PinSaveReq pinSaveReq) {
String sequence = lexoRankUtil.getLexoRank(courseId, size);
PinRedisRes pinRedisRes =
PinServiceMapper.INSTANCE.toPinRedisRes(pinSaveReq, courseId, sequence);
log.info("PinRedisRes: " + pinRedisRes.toString());
redisProvider.setPin(getKey(courseId, pinRedisRes.getPinId()), pinRedisRes, PIN_EXPIRE_TIME);
return PinServiceMapper.INSTANCE.toPinSaveRes(pinRedisRes);
}
Expand Down

0 comments on commit 6c1627a

Please sign in to comment.