add logging

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-01-18 13:05:36 +01:00
parent 31f2f40bcf
commit 1bd28f5ef4
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -279,6 +279,9 @@ public class PushUtils {
@Override
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<>();
proxyMap.put("pushToken", token);
proxyMap.put("deviceIdentifier", pushRegistrationOverall.getOcs().getData().
@ -316,6 +319,9 @@ public class PushUtils {
@Override
public void onNext(@NonNull Void aVoid) {
try {
Log.d(TAG,
"pushToken successfully registered at pushproxy. pushToken= " + proxyMap.get("pushToken").substring(0,5) +
"...");
createOrUpdateUser(proxyMap, userEntity);
} catch (IOException e) {
Log.e(TAG, "IOException while updating user", e);