remove debug logs
This commit is contained in:
parent
2bacba2c87
commit
a49cfe91da
1 changed files with 8 additions and 8 deletions
|
@ -82,9 +82,9 @@ public final class Lbryio {
|
||||||
authToken = getAuthToken(context);
|
authToken = getAuthToken(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) {
|
/*if (BuildConfig.DEBUG) {
|
||||||
Log.d(TAG, String.format("Using authToken for request: %s", authToken));
|
Log.d(TAG, String.format("Using authToken for request: %s", authToken));
|
||||||
}
|
}*/
|
||||||
|
|
||||||
String url = String.format("%s/%s/%s", CONNECTION_STRING, resource, action);
|
String url = String.format("%s/%s/%s", CONNECTION_STRING, resource, action);
|
||||||
if (Helper.METHOD_GET.equalsIgnoreCase(method)) {
|
if (Helper.METHOD_GET.equalsIgnoreCase(method)) {
|
||||||
|
@ -99,9 +99,9 @@ public final class Lbryio {
|
||||||
}
|
}
|
||||||
url = uriBuilder.build().toString();
|
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));
|
Log.d(TAG, String.format("Request Method: %s, Sending request to URL: %s", method, url));
|
||||||
}
|
}*/
|
||||||
|
|
||||||
Request.Builder builder = new Request.Builder().url(url);
|
Request.Builder builder = new Request.Builder().url(url);
|
||||||
if (Helper.METHOD_POST.equalsIgnoreCase(method)) {
|
if (Helper.METHOD_POST.equalsIgnoreCase(method)) {
|
||||||
|
@ -150,9 +150,9 @@ public final class Lbryio {
|
||||||
}
|
}
|
||||||
|
|
||||||
generatingAuthToken = true;
|
generatingAuthToken = true;
|
||||||
if (BuildConfig.DEBUG) {
|
/*if (BuildConfig.DEBUG) {
|
||||||
Log.d(TAG, "Generating a new auth token");
|
Log.d(TAG, "Generating a new auth token");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
Map<String, String> options = new HashMap<>();
|
Map<String, String> options = new HashMap<>();
|
||||||
options.put("auth_token", "");
|
options.put("auth_token", "");
|
||||||
|
@ -161,9 +161,9 @@ public final class Lbryio {
|
||||||
Response response = Lbryio.call("user", "new", options, "post", context);
|
Response response = Lbryio.call("user", "new", options, "post", context);
|
||||||
try {
|
try {
|
||||||
JSONObject json = (JSONObject) parseResponse(response);
|
JSONObject json = (JSONObject) parseResponse(response);
|
||||||
if (BuildConfig.DEBUG) {
|
/*if (BuildConfig.DEBUG) {
|
||||||
Log.d(TAG, String.format("/user/new response: %s", json.toString(2)));
|
Log.d(TAG, String.format("/user/new response: %s", json.toString(2)));
|
||||||
}
|
}*/
|
||||||
if (!json.has(AUTH_TOKEN_PARAM)) {
|
if (!json.has(AUTH_TOKEN_PARAM)) {
|
||||||
throw new LbryioResponseException("auth_token was not set in the response");
|
throw new LbryioResponseException("auth_token was not set in the response");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue