diff --git a/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java b/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java index df6e045db..521f6b7bc 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java @@ -63,7 +63,7 @@ public class NotificationReplyBroadcastReceiver extends BroadcastReceiver { String token = map.getString("password"); String serverUrl = map.getString("service"); - Log.i("ReactNative", String.format("URL=%s TOKEN=%s", serverUrl, token)); + Log.i("ReactNative", String.format("URL=%s", serverUrl)); replyToMessage(serverUrl, token, notificationId, message); } } @@ -87,7 +87,6 @@ public class NotificationReplyBroadcastReceiver extends BroadcastReceiver { final OkHttpClient client = new OkHttpClient(); final MediaType JSON = MediaType.parse("application/json; charset=utf-8"); String json = buildReplyPost(channelId, rootId, message.toString()); - Log.i("ReactNative", String.format("JSON STRING %s", json)); RequestBody body = RequestBody.create(JSON, json); Request request = new Request.Builder() .header("Authorization", String.format("Bearer %s", token)) @@ -99,7 +98,7 @@ public class NotificationReplyBroadcastReceiver extends BroadcastReceiver { client.newCall(request).enqueue(new okhttp3.Callback() { @Override public void onFailure(Call call, IOException e) { - Log.i("ReactNative", String.format("Reply with message %s FAILED exception %s", message, e.getMessage())); + Log.i("ReactNative", String.format("Reply FAILED exception %s", e.getMessage())); onReplyFailed(notificationManager, notificationId, channelId); } @@ -107,9 +106,9 @@ public class NotificationReplyBroadcastReceiver extends BroadcastReceiver { public void onResponse(Call call, final Response response) throws IOException { if (response.isSuccessful()) { onReplySuccess(notificationManager, notificationId, channelId); - Log.i("ReactNative", String.format("Reply with message %s", message)); + Log.i("ReactNative", "Reply SUCCESS"); } else { - Log.i("ReactNative", String.format("Reply with message %s FAILED status %s BODY %s", message, response.code(), response.body().string())); + Log.i("ReactNative", String.format("Reply FAILED status %s BODY %s", response.code(), response.body().string())); onReplyFailed(notificationManager, notificationId, channelId); } } diff --git a/android/app/src/main/java/com/mattermost/rnbeta/ReceiptDelivery.java b/android/app/src/main/java/com/mattermost/rnbeta/ReceiptDelivery.java index 9cc783629..ef85532c0 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/ReceiptDelivery.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/ReceiptDelivery.java @@ -48,7 +48,7 @@ public class ReceiptDelivery { } } - Log.i("ReactNative", String.format("Send receipt delivery ACK=%s TYPE=%s to URL=%s with TOKEN=%s ID-LOADED=%s", ackId, type, serverUrl, token, isIdLoaded)); + Log.i("ReactNative", String.format("Send receipt delivery ACK=%s TYPE=%s to URL=%s with ID-LOADED=%s", ackId, type, serverUrl, isIdLoaded)); execute(serverUrl, postId, token, ackId, type, isIdLoaded, promise); } }