This commit is contained in:
Horis 2023-01-26 12:12:28 +08:00
parent fe52530be4
commit 2d3eca108a

View File

@ -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
} }