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

Commit

Permalink
Update logcat library
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Jan 15, 2020
1 parent c0a11c5 commit 073a91c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion owncloudComLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public OwnCloudClient(Uri baseUri) {
mBaseUri = baseUri;

mInstanceNumber = sIntanceCounter++;
Timber.d(" #" + mInstanceNumber + "Creating OwnCloudClient");
Timber.d("#" + mInstanceNumber + "Creating OwnCloudClient");

clearCredentials();
clearCookies();
Expand Down Expand Up @@ -161,7 +161,7 @@ private void setRequestId(HttpBaseMethod method) {
// 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public OwnCloudClient getClientFor(OwnCloudAccount account, Context context) thr
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 073a91c

Please sign in to comment.