diff --git a/backend/src/main/java/com/worlabel/domain/alarm/service/AlarmService.java b/backend/src/main/java/com/worlabel/domain/alarm/service/AlarmService.java index 8f5c8c1..af45d10 100644 --- a/backend/src/main/java/com/worlabel/domain/alarm/service/AlarmService.java +++ b/backend/src/main/java/com/worlabel/domain/alarm/service/AlarmService.java @@ -19,6 +19,7 @@ public class AlarmService { private final FcmService fcmService; public void save(int memberId, AlarmType type) { + log.debug("알람 전송 memberId {}, type {}", memberId, type); alarmCacheRepository.save(memberId, type); fcmService.send(memberId, type.toString()); } diff --git a/backend/src/main/java/com/worlabel/domain/model/service/AiModelService.java b/backend/src/main/java/com/worlabel/domain/model/service/AiModelService.java index 3640f04..e6724a1 100644 --- a/backend/src/main/java/com/worlabel/domain/model/service/AiModelService.java +++ b/backend/src/main/java/com/worlabel/domain/model/service/AiModelService.java @@ -133,7 +133,7 @@ public class AiModelService { String endPoint = "/models/download"; endPoint += "?modelKey=" + modelKey; - ResponseEntity fileRequest = aiRequestService.getFileRequest(endPoint); + return aiRequestService.getFileRequest(endPoint); } public TrainRequest getTrainRequest(final ModelTrainRequest trainRequest, final Project project, final AiModel model) { diff --git a/backend/src/main/java/com/worlabel/global/service/FcmService.java b/backend/src/main/java/com/worlabel/global/service/FcmService.java index a2fee96..34a030e 100644 --- a/backend/src/main/java/com/worlabel/global/service/FcmService.java +++ b/backend/src/main/java/com/worlabel/global/service/FcmService.java @@ -26,6 +26,8 @@ public class FcmService { public void send(Integer memberId, String data) { String token = fcmCacheRepository.getToken(memberId); + log.debug("토큰 {}", token); + if(Objects.nonNull(token)){ sendNotification(token, data); }