From 2d3eca108ab05d9cb34e94e041e451cf273c4e15 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Thu, 26 Jan 2023 12:12:28 +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/help/JsExtensions.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index d1e6460bf..b4f751927 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -656,10 +656,11 @@ interface JsExtensions : JsEncodeUtils { * 输出调试日志 */ fun log(msg: Any?): Any? { + val msg1 = "书源调试输出:${msg}" getSource()?.let { - Debug.log(it.getKey(), msg.toString()) - } ?: Debug.log(msg.toString()) - AppLog.putDebug(msg.toString()) + Debug.log(it.getKey(), msg1) + } ?: Debug.log(msg1) + AppLog.putDebug(msg1) return msg }