From 10a7bdbc4d06f0ff4f6ac477095eb8515f561293 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Fri, 22 Nov 2019 23:33:47 +0100 Subject: [PATCH] delete all *.log in directory --- owncloudComLibrary/build.gradle | 2 +- .../com/owncloud/android/lib/common/utils/LoggingHelper.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/owncloudComLibrary/build.gradle b/owncloudComLibrary/build.gradle index 5df7c481..0e8238d2 100644 --- a/owncloudComLibrary/build.gradle +++ b/owncloudComLibrary/build.gradle @@ -8,7 +8,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.4' + api 'com.github.hannesa2:Logcat:1.5.5' } allOpen { diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/utils/LoggingHelper.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/utils/LoggingHelper.kt index 23d9125b..edb93b66 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/utils/LoggingHelper.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/utils/LoggingHelper.kt @@ -8,7 +8,7 @@ import java.io.File object LoggingHelper { fun startLogging(directory: File, storagePath: String) { - Timber.forest().fileLoggingTree()?.let { + fileLoggingTree()?.let { Timber.forest().drop(Timber.forest().indexOf(it)) } if (!directory.exists()) @@ -17,7 +17,7 @@ object LoggingHelper { } fun stopLogging() { - Timber.forest().fileLoggingTree()?.let { + fileLoggingTree()?.let { Timber.forest().drop(Timber.forest().indexOf(it)) } }