diff --git a/app/src/main/java/io/legado/app/model/Debug.kt b/app/src/main/java/io/legado/app/model/Debug.kt index cbecbed62..04123aad5 100644 --- a/app/src/main/java/io/legado/app/model/Debug.kt +++ b/app/src/main/java/io/legado/app/model/Debug.kt @@ -77,7 +77,7 @@ object Debug { } } .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) } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } } @@ -149,7 +149,7 @@ object Debug { } } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } tasks.add(explore) } @@ -168,7 +168,7 @@ object Debug { } } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } tasks.add(search) } @@ -182,7 +182,7 @@ object Debug { tocDebug(webBook, book) } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } tasks.add(info) } @@ -201,7 +201,7 @@ object Debug { } } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } tasks.add(chapterList) } @@ -218,7 +218,7 @@ object Debug { log(debugSource, "︽正文页解析完成", state = 1000) } .onError { - log(debugSource, it.getStackTraceString(), state = -1) + log(debugSource, "${it.localizedMessage}\n${it.getStackTraceString()}", state = -1) } tasks.add(content) }