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 105d055b7..3d59f0252 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 @@ -74,6 +74,7 @@ internal fun BytePacketBuilder.debugColorizedPrintThis(name: String = "", compar @Deprecated("Low efficiency, only for debug purpose", ReplaceWith(" ")) internal fun BytePacketBuilder.debugPrintThis(name: String = "") { val data = this.build().readBytes() + data.printColorizedHex(name) this.writeFully(data) }