mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-01 13:12:52 +08:00
Set defaultLogger initially disabled
This commit is contained in:
parent
0221767aa8
commit
21c2fb5766
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user