mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
fe52530be4
commit
2d3eca108a
@ -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…
Reference in New Issue
Block a user