1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-11 16:33:03 +00:00

delete all *.log in directory

This commit is contained in:
Hannes Achleitner
2019-11-22 23:33:47 +01:00
parent fa4db38a41
commit 10a7bdbc4d
2 changed files with 3 additions and 3 deletions
@@ -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))
}
}