mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:42:38 +08:00
Add a switch to DebugLogger
This commit is contained in:
parent
fc5c73eafd
commit
c78c8ac46c
@ -6,9 +6,10 @@ import net.mamoe.mirai.utils.MiraiInternalAPI
|
||||
import net.mamoe.mirai.utils.MiraiLogger
|
||||
import net.mamoe.mirai.utils.internal.printColorize
|
||||
import net.mamoe.mirai.utils.internal.printCompareHex
|
||||
import net.mamoe.mirai.utils.withSwitch
|
||||
|
||||
|
||||
internal object DebugLogger : MiraiLogger by DefaultLogger("Packet Debug")
|
||||
internal object DebugLogger : MiraiLogger by DefaultLogger("Packet Debug").withSwitch()
|
||||
|
||||
internal fun Throwable.logStacktrace(message: String? = null) = DebugLogger.error(message, this)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user