Skip to content

Commit f523b5d

Browse files
committed
chore: 알람 디버깅 로그 추가
1 parent f46c35f commit f523b5d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/apptive/team5/fcm/service/FcmService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.google.api.core.ApiFuture;
88
import com.google.firebase.messaging.*;
99
import lombok.RequiredArgsConstructor;
10+
import lombok.extern.slf4j.Slf4j;
1011
import org.springframework.scheduling.annotation.Async;
1112
import org.springframework.stereotype.Service;
1213
import org.springframework.transaction.annotation.Transactional;
@@ -17,6 +18,7 @@
1718
@Transactional
1819
@Service
1920
@RequiredArgsConstructor
21+
@Slf4j
2022
public class FcmService {
2123

2224
private final DeviceTokenLowService deviceTokenLowService;
@@ -81,6 +83,7 @@ private void handleSendResult(ApiFuture<String> future, String targetToken) {
8183
return;
8284
} catch (Exception ex) {
8385
Throwable cause = ex.getCause();
86+
log.error("fcm 전송 실패 : {}", ex.getMessage());
8487
if (!(cause instanceof FirebaseMessagingException fme)) {
8588
return;
8689
}

0 commit comments

Comments
 (0)