Skip to content

Commit

Permalink
style : 시간 확인용 에러 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjiwoon committed Jan 26, 2024
1 parent ab59f4c commit 25cb4fb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public String getRoomId(String destination) {
* 채팅방에 메시지 발송
*/
public void sendChatMessage(ChatMessageDto chatMessage, String accessToken) {

Long before = System.currentTimeMillis();

chatRoomRedisRepository.setLastChatMessage(chatMessage.getRoomId(), chatMessage);

if (chatMessage.getType().equals(MessageType.DELETE)) {
Expand All @@ -54,6 +57,9 @@ public void sendChatMessage(ChatMessageDto chatMessage, String accessToken) {
.list(chatRoomListGetResponseList)
.build();

Long after = System.currentTimeMillis() - before;
log.error("message Time : {}", after);

redisPublisher.publish(messageSubDto);
}

Expand Down

0 comments on commit 25cb4fb

Please sign in to comment.