调试书源显示更详细的错误信息

pull/354/head
gedoor 4 years ago
parent ea81350ef4
commit 563f84f05f
  1. 14
      app/src/main/java/io/legado/app/model/Debug.kt

@ -77,7 +77,7 @@ object Debug {
} }
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
} }
@ -89,7 +89,7 @@ object Debug {
log(debugSource, "︽内容页解析完成", state = 1000) log(debugSource, "︽内容页解析完成", state = 1000)
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
} }
@ -149,7 +149,7 @@ object Debug {
} }
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
tasks.add(explore) tasks.add(explore)
} }
@ -168,7 +168,7 @@ object Debug {
} }
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
tasks.add(search) tasks.add(search)
} }
@ -182,7 +182,7 @@ object Debug {
tocDebug(webBook, book) tocDebug(webBook, book)
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
tasks.add(info) tasks.add(info)
} }
@ -201,7 +201,7 @@ object Debug {
} }
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
tasks.add(chapterList) tasks.add(chapterList)
} }
@ -218,7 +218,7 @@ object Debug {
log(debugSource, "︽正文页解析完成", state = 1000) log(debugSource, "︽正文页解析完成", state = 1000)
} }
.onError { .onError {
log(debugSource, it.getStackTraceString(), state = -1) log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1)
} }
tasks.add(content) tasks.add(content)
} }

Loading…
Cancel
Save