kunfei %!s(int64=4) %!d(string=hai) anos
pai
achega
1e205bb04d

+ 2 - 1
app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@@ -13,6 +13,7 @@ import com.script.SimpleBindings
 import io.legado.app.R
 import io.legado.app.R
 import io.legado.app.base.BaseViewModel
 import io.legado.app.base.BaseViewModel
 import io.legado.app.constant.AppConst
 import io.legado.app.constant.AppConst
+import io.legado.app.constant.AppLog
 import io.legado.app.constant.AppPattern
 import io.legado.app.constant.AppPattern
 import io.legado.app.data.appDb
 import io.legado.app.data.appDb
 import io.legado.app.data.entities.Book
 import io.legado.app.data.entities.Book
@@ -116,7 +117,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
             exportProgress.remove(book.bookUrl)
             exportProgress.remove(book.bookUrl)
             exportMsg[book.bookUrl] = it.localizedMessage ?: "ERROR"
             exportMsg[book.bookUrl] = it.localizedMessage ?: "ERROR"
             upAdapterLiveData.postValue(book.bookUrl)
             upAdapterLiveData.postValue(book.bookUrl)
-            it.printOnDebug()
+            AppLog.put("导出书籍<${book.name}>出错", it)
         }.onSuccess {
         }.onSuccess {
             exportProgress.remove(book.bookUrl)
             exportProgress.remove(book.bookUrl)
             exportMsg[book.bookUrl] = context.getString(R.string.export_success)
             exportMsg[book.bookUrl] = context.getString(R.string.export_success)