1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Update logcat library

This commit is contained in:
Abel García de Prada 2020-01-13 14:17:48 +01:00
parent c0a11c5d0b
commit 073a91c580
4 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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) {

View File

@ -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() {