@@ -56,7 +56,6 @@ public class OwnCloudClient extends HttpClient {
56
56
public static final String WEBDAV_FILES_PATH_4_0 = "/remote.php/dav/files/" ;
57
57
public static final String STATUS_PATH = "/status.php" ;
58
58
private static final String WEBDAV_UPLOADS_PATH_4_0 = "/remote.php/dav/uploads/" ;
59
- private static final int MAX_REDIRECTIONS_COUNT = 5 ;
60
59
private static final int MAX_RETRY_COUNT = 2 ;
61
60
62
61
private static int sIntanceCounter = 0 ;
@@ -137,7 +136,6 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
137
136
}
138
137
139
138
status = method .execute ();
140
- stacklog (status , method );
141
139
142
140
if (!mFollowRedirects &&
143
141
!method .getFollowRedirects () &&
@@ -156,28 +154,6 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
156
154
return status ;
157
155
}
158
156
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
- "\n responsecode: " + status +
165
- "\n Thread: " + Thread .currentThread ().getName () +
166
- "\n object: " + this .toString () +
167
- "\n Method: " + method .toString () +
168
- "\n Url: " + method .getHttpUrl () +
169
- "\n Cookeis: " + getCookiesForBaseUri ().toString () +
170
- "\n Credentials type: " + mCredentials .getClass ().toString () +
171
- "\n token: " + mCredentials .getAuthToken () +
172
-
173
- "\n Headers: ++++" +
174
- "\n " + method .getRequest ().headers ().toString () +
175
- "+++++++++++++" +
176
- "\n trace: " + ExceptionUtils .getStackTrace (e ) +
177
- "---------------------------" );
178
- }
179
- }
180
-
181
157
/**
182
158
* Exhausts a not interesting HTTP response. Encouraged by HttpClient documentation.
183
159
*
0 commit comments