This commit is contained in:
gedoor 2021-10-23 23:42:33 +08:00
parent f6d62b4203
commit 548df96f8a
3 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,6 @@ package io.legado.app.help
import android.net.Uri
import android.util.Base64
import android.util.Log
import androidx.annotation.Keep
import io.legado.app.BuildConfig
import io.legado.app.constant.AppConst.dateFormat
@ -482,7 +481,7 @@ interface JsExtensions {
Debug.log(it.getKey(), msg)
} ?: Debug.log(msg)
if (BuildConfig.DEBUG) {
Log.d("SourceDebugLog", msg)
Timber.d(msg)
}
return msg
}

View File

@ -1,10 +1,9 @@
package io.legado.app.help.storage
import android.util.Log
import io.legado.app.constant.AppConst
import io.legado.app.data.appDb
import io.legado.app.data.entities.Book
import io.legado.app.utils.*
import timber.log.Timber
object OldBook {
@ -19,7 +18,7 @@ object OldBook {
if (book.bookUrl.isBlank()) continue
book.name = jsonItem.readString("$.bookInfoBean.name") ?: ""
if (book.bookUrl in existingBooks) {
Log.d(AppConst.APP_TAG, "Found existing book: ${book.name}")
Timber.d("Found existing book: " + book.name)
continue
}
book.origin = jsonItem.readString("$.tag") ?: ""

View File

@ -1,7 +1,6 @@
package io.legado.app.model.localBook
import android.net.Uri
import android.util.Log
import io.legado.app.data.entities.Book
import io.legado.app.data.entities.BookChapter
import io.legado.app.utils.FileUtils
@ -122,7 +121,7 @@ class UmdFile(var book: Book) {
chapter.index = index
chapter.bookUrl = book.bookUrl
chapter.url = index.toString()
Log.d("UMD", chapter.url)
Timber.d(chapter.url)
chapterList.add(chapter)
}
book.latestChapterTitle = chapterList.lastOrNull()?.title