Skip to content

Commit

Permalink
[FEAT] AchievementSocketService 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JIN-076 authored Mar 20, 2024
1 parent fe43811 commit 4b4869a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ public void sendMessageAboutAchievmentCompletion(Long userId, AchievementMessage

if (session != null) {
try {
log.info("call sendMessage");
String jsonMessage = objectMapper.writeValueAsString(message);
TextMessage textMessage = new TextMessage(jsonMessage);
session.sendMessage(textMessage);
log.info("call completed");
} catch (JsonProcessingException e) {
log.error("failed to convert Json message from object: {}", e.getMessage());
} catch (Exception e) {
Expand Down

0 comments on commit 4b4869a

Please sign in to comment.