From a49cfe91daef23af0986e6879cfbaa64c3812f91 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 27 May 2020 10:58:28 +0100 Subject: [PATCH] remove debug logs --- .../main/java/io/lbry/browser/utils/Lbryio.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/utils/Lbryio.java b/app/src/main/java/io/lbry/browser/utils/Lbryio.java index f94fd3ac..9ab3cdf9 100644 --- a/app/src/main/java/io/lbry/browser/utils/Lbryio.java +++ b/app/src/main/java/io/lbry/browser/utils/Lbryio.java @@ -82,9 +82,9 @@ public final class Lbryio { authToken = getAuthToken(context); } - if (BuildConfig.DEBUG) { + /*if (BuildConfig.DEBUG) { Log.d(TAG, String.format("Using authToken for request: %s", authToken)); - } + }*/ String url = String.format("%s/%s/%s", CONNECTION_STRING, resource, action); if (Helper.METHOD_GET.equalsIgnoreCase(method)) { @@ -99,9 +99,9 @@ public final class Lbryio { } url = uriBuilder.build().toString(); } - if (BuildConfig.DEBUG) { + /*if (BuildConfig.DEBUG) { Log.d(TAG, String.format("Request Method: %s, Sending request to URL: %s", method, url)); - } + }*/ Request.Builder builder = new Request.Builder().url(url); if (Helper.METHOD_POST.equalsIgnoreCase(method)) { @@ -150,9 +150,9 @@ public final class Lbryio { } generatingAuthToken = true; - if (BuildConfig.DEBUG) { + /*if (BuildConfig.DEBUG) { Log.d(TAG, "Generating a new auth token"); - } + }*/ Map options = new HashMap<>(); options.put("auth_token", ""); @@ -161,9 +161,9 @@ public final class Lbryio { Response response = Lbryio.call("user", "new", options, "post", context); try { JSONObject json = (JSONObject) parseResponse(response); - if (BuildConfig.DEBUG) { + /*if (BuildConfig.DEBUG) { Log.d(TAG, String.format("/user/new response: %s", json.toString(2))); - } + }*/ if (!json.has(AUTH_TOKEN_PARAM)) { throw new LbryioResponseException("auth_token was not set in the response"); }