mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-05 18:25:28 +08:00
Fix logger data's package name blank problem in YukiLoggerData
This commit is contained in:
@@ -120,7 +120,7 @@ data class YukiLoggerData internal constructor(
|
|||||||
YukiHookLogger.Configs.elements.takeIf { it.isNotEmpty() }?.forEach {
|
YukiHookLogger.Configs.elements.takeIf { it.isNotEmpty() }?.forEach {
|
||||||
if (it == YukiHookLogger.Configs.TAG) content += "[$tag]"
|
if (it == YukiHookLogger.Configs.TAG) content += "[$tag]"
|
||||||
if (it == YukiHookLogger.Configs.PRIORITY) content += "[$priority]"
|
if (it == YukiHookLogger.Configs.PRIORITY) content += "[$priority]"
|
||||||
if (it == YukiHookLogger.Configs.PACKAGE_NAME && isImplicit.not()) content += "[$packageName]"
|
if (it == YukiHookLogger.Configs.PACKAGE_NAME && isImplicit.not() && packageName.isNotBlank()) content += "[$packageName]"
|
||||||
if (it == YukiHookLogger.Configs.USER_ID && isImplicit.not() && userId != 0) content += "[$userId]"
|
if (it == YukiHookLogger.Configs.USER_ID && isImplicit.not() && userId != 0) content += "[$userId]"
|
||||||
}
|
}
|
||||||
return content.takeIf { it.isNotBlank() }?.let { "$content--> $msg" } ?: msg
|
return content.takeIf { it.isNotBlank() }?.let { "$content--> $msg" } ?: msg
|
||||||
|
Reference in New Issue
Block a user