mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Update logcat library
This commit is contained in:
		
							parent
							
								
									c0a11c5d0b
								
							
						
					
					
						commit
						073a91c580
					
				| @ -7,7 +7,7 @@ dependencies { | ||||
|     api 'com.squareup.okhttp3:okhttp:3.12.0' | ||||
|     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" | ||||
|     api 'com.gitlab.ownclouders:dav4android:oc_support_1.0.1' | ||||
|     api 'com.github.hannesa2:Logcat:1.5.6' | ||||
|     api 'com.github.hannesa2:Logcat:1.6.0' | ||||
| } | ||||
| 
 | ||||
| allOpen { | ||||
|  | ||||
| @ -84,7 +84,7 @@ public class OwnCloudClient extends HttpClient { | ||||
|         mBaseUri = baseUri; | ||||
| 
 | ||||
|         mInstanceNumber = sIntanceCounter++; | ||||
|         Timber.d(" #" + mInstanceNumber + "Creating OwnCloudClient"); | ||||
|         Timber.d("#" + mInstanceNumber + "Creating OwnCloudClient"); | ||||
| 
 | ||||
|         clearCredentials(); | ||||
|         clearCookies(); | ||||
| @ -161,7 +161,7 @@ public class OwnCloudClient extends HttpClient { | ||||
|         // Header to allow tracing requests in apache and ownCloud logs | ||||
|         addHeaderForAllRequests(OC_X_REQUEST_ID, requestId); | ||||
| 
 | ||||
|         Timber.d("Executing " + method.getClass().getSimpleName() + " in request with id " + requestId); | ||||
|         Timber.d("Executing in request with id %s", requestId); | ||||
|     } | ||||
| 
 | ||||
|     public RedirectionPath followRedirection(HttpBaseMethod method) throws Exception { | ||||
|  | ||||
| @ -46,7 +46,7 @@ public class SimpleFactoryManager implements OwnCloudClientManager { | ||||
|                 context.getApplicationContext(), | ||||
|                 true); | ||||
| 
 | ||||
|         Timber.v("    new client {" + (account.getName() != null ? account.getName() : | ||||
|         Timber.v("new client {" + (account.getName() != null ? account.getName() : | ||||
|                 AccountUtils.buildAccountName(account.getBaseUri(), "")) + ", " + client.hashCode() + "}"); | ||||
| 
 | ||||
|         if (account.getCredentials() == null) { | ||||
|  | ||||
| @ -13,7 +13,7 @@ object LoggingHelper { | ||||
|         } | ||||
|         if (!directory.exists()) | ||||
|             directory.mkdirs() | ||||
|         Timber.plant(FileLoggingTree(directory, filename = storagePath, delegator = Timber::class.java)) | ||||
|         Timber.plant(FileLoggingTree(directory, filename = storagePath)) | ||||
|     } | ||||
| 
 | ||||
|     fun stopLogging() { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user