From cc9225e7d73a4e3ec2367c4291d4030d758ddcf3 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Mon, 8 Aug 2022 23:48:58 +0800 Subject: [PATCH] Modify logger only output from hooker in BaseFinder --- .../highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 64ae24b2..3b941aba 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 @@ -223,7 +223,7 @@ abstract class BaseFinder internal constructor( * @param msg 调试日志内容 */ internal fun onHookLogMsg(msg: String) { - if (YukiHookAPI.Configs.isDebug && YukiHookBridge.hasXposedBridge) yLoggerI(msg = msg) + if (YukiHookAPI.Configs.isDebug && YukiHookBridge.hasXposedBridge && hookInstance != null) yLoggerI(msg = msg) } /**