pull/2731/head
Horis 2 years ago
parent fe52530be4
commit 2d3eca108a
  1. 7
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -656,10 +656,11 @@ interface JsExtensions : JsEncodeUtils {
* 输出调试日志 * 输出调试日志
*/ */
fun log(msg: Any?): Any? { fun log(msg: Any?): Any? {
val msg1 = "书源调试输出:${msg}"
getSource()?.let { getSource()?.let {
Debug.log(it.getKey(), msg.toString()) Debug.log(it.getKey(), msg1)
} ?: Debug.log(msg.toString()) } ?: Debug.log(msg1)
AppLog.putDebug(msg.toString()) AppLog.putDebug(msg1)
return msg return msg
} }

Loading…
Cancel
Save