mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
add logging
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
31f2f40bcf
commit
1bd28f5ef4
@ -279,6 +279,9 @@ public class PushUtils {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(@NonNull PushRegistrationOverall pushRegistrationOverall) {
|
public void onNext(@NonNull PushRegistrationOverall pushRegistrationOverall) {
|
||||||
|
Log.d(TAG,
|
||||||
|
"pushToken successfully registered at nextcloud server. pushToken= " + token.substring(0,5) + "...");
|
||||||
|
|
||||||
Map<String, String> proxyMap = new HashMap<>();
|
Map<String, String> proxyMap = new HashMap<>();
|
||||||
proxyMap.put("pushToken", token);
|
proxyMap.put("pushToken", token);
|
||||||
proxyMap.put("deviceIdentifier", pushRegistrationOverall.getOcs().getData().
|
proxyMap.put("deviceIdentifier", pushRegistrationOverall.getOcs().getData().
|
||||||
@ -316,6 +319,9 @@ public class PushUtils {
|
|||||||
@Override
|
@Override
|
||||||
public void onNext(@NonNull Void aVoid) {
|
public void onNext(@NonNull Void aVoid) {
|
||||||
try {
|
try {
|
||||||
|
Log.d(TAG,
|
||||||
|
"pushToken successfully registered at pushproxy. pushToken= " + proxyMap.get("pushToken").substring(0,5) +
|
||||||
|
"...");
|
||||||
createOrUpdateUser(proxyMap, userEntity);
|
createOrUpdateUser(proxyMap, userEntity);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e(TAG, "IOException while updating user", e);
|
Log.e(TAG, "IOException while updating user", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user