From 4f25c89ea7f5e5e175a8c861cfbf73c0ca17ae22 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 3 Oct 2023 22:45:05 +0800 Subject: [PATCH] fix: throwable not print in console --- .../src/main/java/com/highcapable/yukireflection/log/YLog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yukireflection-core/src/main/java/com/highcapable/yukireflection/log/YLog.kt b/yukireflection-core/src/main/java/com/highcapable/yukireflection/log/YLog.kt index 4f3de93..52aa79b 100644 --- a/yukireflection-core/src/main/java/com/highcapable/yukireflection/log/YLog.kt +++ b/yukireflection-core/src/main/java/com/highcapable/yukireflection/log/YLog.kt @@ -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)