mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 21:18:33 +00:00
Add token to FCM logs
This commit is contained in:
parent
be4d742e84
commit
b2a1b5fe46
@ -52,11 +52,11 @@ object PushNotificationAPI {
|
|||||||
retryIfNeeded(maxRetryCount) {
|
retryIfNeeded(maxRetryCount) {
|
||||||
OnionRequestAPI.sendOnionRequest(request, legacyServer, legacyServerPublicKey, Version.V2).map { response ->
|
OnionRequestAPI.sendOnionRequest(request, legacyServer, legacyServerPublicKey, Version.V2).map { response ->
|
||||||
when (response.info["code"]) {
|
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")
|
else -> Log.d(TAG, "unregisterV1 success token: $token")
|
||||||
}
|
}
|
||||||
}.fail { exception ->
|
}.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}.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user