diff --git a/noti-service/src/main/java/com/waither/notiservice/utils/FireBaseUtils.java b/noti-service/src/main/java/com/waither/notiservice/utils/FireBaseUtils.java index ab37a78c..fc8d83c9 100644 --- a/noti-service/src/main/java/com/waither/notiservice/utils/FireBaseUtils.java +++ b/noti-service/src/main/java/com/waither/notiservice/utils/FireBaseUtils.java @@ -34,7 +34,7 @@ public void sendSingleMessage(String token, String title, String body) { } catch (FirebaseMessagingException ex) { ex.printStackTrace(); - throw new CustomException(ErrorCode.FIREBASE_ERROR); + log.error("[ FireBaseUtils ] Failed to send message : {}",ex.getMessage()); } } @@ -71,7 +71,7 @@ public void sendAllMessages(List tokens, String title, String body) { } catch (FirebaseMessagingException ex) { ex.printStackTrace(); - throw new CustomException(ErrorCode.FIREBASE_ERROR); + log.error("[ FireBaseUtils ] Failed to send message : {}",ex.getMessage()); } } }