Skip to content

Commit 0e765d1

Browse files
committed
refactor: 로그에 fcm 내용 출력
1 parent 2bddcea commit 0e765d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/example/busnotice/domain/fcmToken/FCMService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@ public void sendNotification() throws UnsupportedEncodingException {
115115
try {
116116
String response = FirebaseMessaging.getInstance().send(message);
117117
log.info("메시지 전송 성공: {}, 토큰: {}", response, notification.token());
118+
log.info("메시지 내용: {}", message.toString());
118119
} catch (FirebaseMessagingException e) {
119120
log.error("메시지 전송 실패: {}, 토큰: {}", e.getMessage(), notification.token());
121+
log.error("메시지 내용: {}", message.toString());
120122
}
121123
}
122124
}
123125

124-
125126
}

0 commit comments

Comments
 (0)