diff --git a/app/build.gradle b/app/build.gradle index 3ca6f9178..6df60a32f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -223,5 +223,5 @@ dependencies { //epubLib集成到应用内 // LeakCanary - debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' + //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' } diff --git a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt index e0f9fa293..8ccaf91d1 100644 --- a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt +++ b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt @@ -13,6 +13,7 @@ import io.legado.app.help.BookHelp import io.legado.app.model.TocEmptyException import io.legado.app.utils.* import splitties.init.appCtx +import timber.log.Timber import java.io.File import java.util.regex.Matcher import java.util.regex.Pattern @@ -57,6 +58,7 @@ object LocalBook { } } } catch (e: Exception) { + Timber.e(e) e.localizedMessage } }