From 5168984721522167e575cb667f7a32b43cf51e24 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Wed, 4 May 2022 05:14:24 +0800 Subject: [PATCH] Merge code --- .../yukihookapi/hook/core/finder/base/BaseFinder.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt index 9d26f970..b8b68224 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt @@ -185,8 +185,10 @@ abstract class BaseFinder( /** 存在日志时输出日志 */ internal fun printLogIfExist() { - if (loggingContent == null) return - yLoggerE(msg = "NoSuch$tag happend in [$classSet] ${loggingContent?.first} [${hookTag}]", e = loggingContent?.second) + if (loggingContent != null) yLoggerE( + msg = "${hookInstance?.packageName?.let { "[$it] " } ?: ""}NoSuch$tag happend in [$classSet] ${loggingContent?.first} [${hookTag}]", + e = loggingContent?.second + ) /** 仅输出一次 - 然后清掉日志 */ loggingContent = null }