From bb29a34d981a286be96032b52fb03190af9a273a Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 10 Sep 2021 17:24:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/CacheBook.kt | 2 +- app/src/main/java/io/legado/app/ui/main/MainViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/CacheBook.kt b/app/src/main/java/io/legado/app/model/CacheBook.kt index a7f4517a8..cb228bd4a 100644 --- a/app/src/main/java/io/legado/app/model/CacheBook.kt +++ b/app/src/main/java/io/legado/app/model/CacheBook.kt @@ -171,7 +171,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) { waitDownloadSet.add(index) } else { AppLog.addLog( - "download ${book.name}-${chapterTitle} error:${error.localizedMessage}", + "下载${book.name}-${chapterTitle}失败\n${error.localizedMessage}", error ) error.printOnDebug() diff --git a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt index d09238e35..e9240002c 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt @@ -91,7 +91,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) { ) CacheBook.start(context, book.bookUrl, book.durChapterIndex, endIndex) }.onError(upTocPool) { - AppLog.addLog("${book.name} 更新目录失败 error: ${it.localizedMessage}", it) + AppLog.addLog("${book.name} 更新目录失败\n${it.localizedMessage}", it) it.printOnDebug() }.onFinally(upTocPool) { synchronized(this) {