Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit fc8440c

Browse files
committed
remove debug statements
1 parent 5ca99a0 commit fc8440c

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/ConnectionValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ConnectionValidator (
3333
client.account = baseClient.account
3434
client.credentials = baseClient.credentials
3535
while (validationRetryCount < VALIDATION_RETRY_COUNT) {
36-
Timber.d("+++++++++++++++++++++++++++++++++++++ validationRetryCout %d", validationRetryCount)
36+
Timber.d("validationRetryCout %d", validationRetryCount)
3737
var successCounter = 0
3838
var failCounter = 0
3939

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public class OwnCloudClient extends HttpClient {
5656
public static final String WEBDAV_FILES_PATH_4_0 = "/remote.php/dav/files/";
5757
public static final String STATUS_PATH = "/status.php";
5858
private static final String WEBDAV_UPLOADS_PATH_4_0 = "/remote.php/dav/uploads/";
59-
private static final int MAX_REDIRECTIONS_COUNT = 5;
6059
private static final int MAX_RETRY_COUNT = 2;
6160

6261
private static int sIntanceCounter = 0;
@@ -137,7 +136,6 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
137136
}
138137

139138
status = method.execute();
140-
stacklog(status, method);
141139

142140
if (!mFollowRedirects &&
143141
!method.getFollowRedirects() &&
@@ -156,28 +154,6 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
156154
return status;
157155
}
158156

159-
private void stacklog(int status, HttpBaseMethod method) {
160-
try {
161-
throw new Exception("Stack log");
162-
} catch(Exception e) {
163-
Timber.d("\n---------------------------" +
164-
"\nresponsecode: " + status +
165-
"\nThread: " + Thread.currentThread().getName() +
166-
"\nobject: " + this.toString() +
167-
"\nMethod: " + method.toString() +
168-
"\nUrl: " + method.getHttpUrl() +
169-
"\nCookeis: " + getCookiesForBaseUri().toString() +
170-
"\nCredentials type: " + mCredentials.getClass().toString() +
171-
"\ntoken: " + mCredentials.getAuthToken() +
172-
173-
"\nHeaders: ++++" +
174-
"\n" + method.getRequest().headers().toString() +
175-
"+++++++++++++" +
176-
"\ntrace: " + ExceptionUtils.getStackTrace(e) +
177-
"---------------------------");
178-
}
179-
}
180-
181157
/**
182158
* Exhausts a not interesting HTTP response. Encouraged by HttpClient documentation.
183159
*

0 commit comments

Comments
 (0)