diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt index e59420a72..ce1d87248 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/DebugUtil.kt @@ -15,10 +15,7 @@ package net.mamoe.mirai.utils.io import kotlinx.io.core.* import kotlinx.io.pool.useInstance -import net.mamoe.mirai.utils.DefaultLogger -import net.mamoe.mirai.utils.MiraiDebugAPI -import net.mamoe.mirai.utils.MiraiLogger -import net.mamoe.mirai.utils.withSwitch +import net.mamoe.mirai.utils.* import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract @@ -28,7 +25,7 @@ import kotlin.jvm.JvmName @MiraiDebugAPI("Unsatble") -object DebugLogger : MiraiLogger by DefaultLogger("Packet Debug").withSwitch() +val DebugLogger : MiraiLoggerWithSwitch = DefaultLogger("Packet Debug").withSwitch(false) @MiraiDebugAPI("Unstable") inline fun Throwable.logStacktrace(message: String? = null) = DebugLogger.error(message, this)