mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-05 18:25:42 +08:00
fix: throwable not print in console
This commit is contained in:
@@ -110,13 +110,13 @@ object YLog {
|
||||
*/
|
||||
private fun log(type: Type, msg: String, e: Throwable? = null) {
|
||||
val isAndroid = "android.util.Log".hasClass()
|
||||
val mixedContent = "[${Configs.tag}][${type.alias}] $msg"
|
||||
|
||||
/**
|
||||
* 打印 Log
|
||||
* @param msg 消息内容
|
||||
*/
|
||||
fun innerLog(msg: String) {
|
||||
val mixedContent = "[${Configs.tag}][${type.alias}] $msg"
|
||||
when {
|
||||
isAndroid -> when (type) {
|
||||
Type.DEBUG -> Log.d(Configs.tag, msg, e)
|
||||
|
Reference in New Issue
Block a user