Merge remote-tracking branch 'origin/master'

pull/2731/head
kunfei 2 years ago
commit 770ab70a0d
  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