mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	remove debug statements
This commit is contained in:
		
							parent
							
								
									5ca99a0e69
								
							
						
					
					
						commit
						fc8440cc01
					
				| @ -33,7 +33,7 @@ class ConnectionValidator ( | ||||
|             client.account = baseClient.account | ||||
|             client.credentials = baseClient.credentials | ||||
|             while (validationRetryCount < VALIDATION_RETRY_COUNT) { | ||||
|                 Timber.d("+++++++++++++++++++++++++++++++++++++ validationRetryCout %d", validationRetryCount) | ||||
|                 Timber.d("validationRetryCout %d", validationRetryCount) | ||||
|                 var successCounter = 0 | ||||
|                 var failCounter = 0 | ||||
| 
 | ||||
|  | ||||
| @ -56,7 +56,6 @@ public class OwnCloudClient extends HttpClient { | ||||
|     public static final String WEBDAV_FILES_PATH_4_0 = "/remote.php/dav/files/"; | ||||
|     public static final String STATUS_PATH = "/status.php"; | ||||
|     private static final String WEBDAV_UPLOADS_PATH_4_0 = "/remote.php/dav/uploads/"; | ||||
|     private static final int MAX_REDIRECTIONS_COUNT = 5; | ||||
|     private static final int MAX_RETRY_COUNT = 2; | ||||
| 
 | ||||
|     private static int sIntanceCounter = 0; | ||||
| @ -137,7 +136,6 @@ public class OwnCloudClient extends HttpClient { | ||||
|             } | ||||
| 
 | ||||
|             status = method.execute(); | ||||
|             stacklog(status, method); | ||||
| 
 | ||||
|             if (!mFollowRedirects && | ||||
|                     !method.getFollowRedirects() && | ||||
| @ -156,28 +154,6 @@ public class OwnCloudClient extends HttpClient { | ||||
|         return status; | ||||
|     } | ||||
| 
 | ||||
|     private void stacklog(int status, HttpBaseMethod method) { | ||||
|         try { | ||||
|             throw new Exception("Stack log"); | ||||
|         } catch(Exception e) { | ||||
|             Timber.d("\n---------------------------" + | ||||
|                     "\nresponsecode: " + status + | ||||
|                     "\nThread: " + Thread.currentThread().getName() + | ||||
|                     "\nobject: " + this.toString() + | ||||
|                     "\nMethod: " + method.toString() + | ||||
|                     "\nUrl: " + method.getHttpUrl() + | ||||
|                     "\nCookeis: " + getCookiesForBaseUri().toString() + | ||||
|                     "\nCredentials type: " + mCredentials.getClass().toString() + | ||||
|                     "\ntoken: " + mCredentials.getAuthToken() + | ||||
| 
 | ||||
|                     "\nHeaders: ++++" + | ||||
|                     "\n" + method.getRequest().headers().toString() + | ||||
|                     "+++++++++++++" + | ||||
|                     "\ntrace: " + ExceptionUtils.getStackTrace(e) + | ||||
|                     "---------------------------"); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Exhausts a not interesting HTTP response. Encouraged by HttpClient documentation. | ||||
|      * | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user