Skip to content

Commit d538348

Browse files
committed
Fix warning when FCM token cannot be sent
1 parent b7c5594 commit d538348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/pkg/services/phone_notification_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (service *PhoneNotificationService) Send(ctx context.Context, params *Phone
134134
Token: *phone.FcmToken,
135135
})
136136
if err != nil {
137-
ctxLogger.Warn(stacktrace.Propagate(err, "cannot send FCM to phone"))
137+
ctxLogger.Warn(stacktrace.Propagate(err, fmt.Sprintf("cannot send FCM to phone with ID [%s] for user with ID [%s] and message [%s]", phone.ID, phone.UserID, params.MessageID)))
138138
msg := fmt.Sprintf("cannot send notification for to your phone [%s]. Reinstall the httpSMS app on your Android phone.", phone.PhoneNumber)
139139
return service.handleNotificationFailed(ctx, errors.New(msg), params)
140140
}

0 commit comments

Comments
 (0)