diff --git a/src/main/java/com/moabam/api/infrastructure/fcm/FcmService.java b/src/main/java/com/moabam/api/infrastructure/fcm/FcmService.java index cc575968..6fc15f68 100644 --- a/src/main/java/com/moabam/api/infrastructure/fcm/FcmService.java +++ b/src/main/java/com/moabam/api/infrastructure/fcm/FcmService.java @@ -9,7 +9,9 @@ import com.google.firebase.messaging.Notification; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +@Slf4j @Service @RequiredArgsConstructor public class FcmService { @@ -22,7 +24,9 @@ public void createToken(String fcmToken, Long memberId) { return; } + log.info("FCM TOKEN before: " + fcmToken); fcmRepository.saveToken(fcmToken, memberId); + log.info("FCM TOKEN after: " + findTokenByMemberId(memberId)); } public void deleteTokenByMemberId(Long memberId) {