Skip to content

Commit 5939e1d

Browse files
committed
fix: normal logs not output throwable
1 parent ba9928b commit 5939e1d

File tree

1 file changed

+3
-3
lines changed
  • yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/log

1 file changed

+3
-3
lines changed

yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/log/YLog.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ object YLog {
323323

324324
/** 打印到 [Log] */
325325
fun logByLogd() = when (data.priority) {
326-
"D" -> Log.d(data.tag, data.msg)
327-
"I" -> Log.i(data.tag, data.msg)
328-
"W" -> Log.w(data.tag, data.msg)
326+
"D" -> Log.d(data.tag, data.msg, data.throwable)
327+
"I" -> Log.i(data.tag, data.msg, data.throwable)
328+
"W" -> Log.w(data.tag, data.msg, data.throwable)
329329
"E" -> Log.e(data.tag, data.msg, data.throwable)
330330
else -> Log.wtf(data.tag, data.msg, data.throwable)
331331
}

0 commit comments

Comments
 (0)