From b2a1b5fe4694e5a1e7d1e9c5962fa3fe30c3f96b Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 10 Jun 2023 11:44:43 +0930 Subject: [PATCH] Add token to FCM logs --- .../sending_receiving/notifications/PushNotificationAPI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/notifications/PushNotificationAPI.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/notifications/PushNotificationAPI.kt index d9e4293cf7..32bd17c8c2 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/notifications/PushNotificationAPI.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/notifications/PushNotificationAPI.kt @@ -52,11 +52,11 @@ object PushNotificationAPI { retryIfNeeded(maxRetryCount) { OnionRequestAPI.sendOnionRequest(request, legacyServer, legacyServerPublicKey, Version.V2).map { response -> when (response.info["code"]) { - null, 0 -> Log.d(TAG, "Couldn't disable FCM due to error: ${response.info["message"]}.") + null, 0 -> Log.d(TAG, "Couldn't disable FCM with token: $token due to error: ${response.info["message"]}.") else -> Log.d(TAG, "unregisterV1 success token: $token") } }.fail { exception -> - Log.d(TAG, "Couldn't disable FCM due to error: ${exception}.") + Log.d(TAG, "Couldn't disable FCM with token: $token due to error: ${exception}.") } } }