debug logger
This commit is contained in:
parent
ccb32a73dd
commit
e5531bbef7
|
@ -35,7 +35,6 @@ class FcmSendListener(
|
|||
fun send(fcmEvent: FcmEvent) {
|
||||
when (fcmEvent.type) {
|
||||
FcmEventType.ALL -> {
|
||||
logger.info("ALL")
|
||||
if (fcmEvent.container.isNotBlank()) {
|
||||
val pushTokens = memberRepository.getAllRecipientPushTokens(
|
||||
fcmEvent.isAuth,
|
||||
|
@ -54,7 +53,6 @@ class FcmSendListener(
|
|||
}
|
||||
|
||||
FcmEventType.INDIVIDUAL -> {
|
||||
logger.info("INDIVIDUAL")
|
||||
if (fcmEvent.recipients.isNotEmpty()) {
|
||||
val pushTokens = memberRepository.getIndividualRecipientPushTokens(
|
||||
recipients = fcmEvent.recipients,
|
||||
|
@ -89,8 +87,6 @@ class FcmSendListener(
|
|||
}
|
||||
|
||||
FcmEventType.CREATE_LIVE, FcmEventType.START_LIVE -> {
|
||||
logger.info("CREATE_LIVE")
|
||||
logger.info("START_LIVE")
|
||||
if (fcmEvent.container.isNotBlank()) {
|
||||
val pushTokens = memberRepository.getCreateLiveRoomNotificationRecipientPushTokens(
|
||||
creatorId = fcmEvent.creatorId!!,
|
||||
|
@ -98,6 +94,8 @@ class FcmSendListener(
|
|||
container = fcmEvent.container
|
||||
)
|
||||
|
||||
logger.info("pushTokens: $pushTokens")
|
||||
|
||||
for (tokens in pushTokens) {
|
||||
pushService.send(
|
||||
tokens = tokens,
|
||||
|
@ -111,7 +109,6 @@ class FcmSendListener(
|
|||
}
|
||||
|
||||
FcmEventType.UPLOAD_CONTENT -> {
|
||||
logger.info("UPLOAD_CONTENT")
|
||||
if (fcmEvent.container.isNotBlank()) {
|
||||
val pushTokens = memberRepository.getUploadContentNotificationRecipientPushTokens(
|
||||
creatorId = fcmEvent.creatorId!!,
|
||||
|
@ -132,7 +129,6 @@ class FcmSendListener(
|
|||
}
|
||||
|
||||
FcmEventType.SEND_MESSAGE -> {
|
||||
logger.info("SEND_MESSAGE")
|
||||
val response = memberRepository.getMessageRecipientPushToken(messageId = fcmEvent.messageId!!)
|
||||
|
||||
pushService.send(
|
||||
|
|
Loading…
Reference in New Issue