mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 20:20:08 +08:00
Replace println with network.logger.debug
This commit is contained in:
parent
c8f7d53eb0
commit
7c69bd038d
@ -215,7 +215,7 @@ internal class OnlinePush {
|
|||||||
4096 -> {
|
4096 -> {
|
||||||
val dataBytes = this.readBytes(26)
|
val dataBytes = this.readBytes(26)
|
||||||
val message = this.readString(this.readByte().toInt())
|
val message = this.readString(this.readByte().toInt())
|
||||||
println(dataBytes.toUHexString())
|
// println(dataBytes.toUHexString())
|
||||||
|
|
||||||
if (dataBytes[0].toInt() != 59) {
|
if (dataBytes[0].toInt() != 59) {
|
||||||
return GroupNameChangeEvent(
|
return GroupNameChangeEvent(
|
||||||
@ -244,7 +244,7 @@ internal class OnlinePush {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
println("Unknown server messages $message")
|
bot.network.logger.debug{"Unknown server messages $message"}
|
||||||
return NoPacket
|
return NoPacket
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -255,17 +255,17 @@ internal class OnlinePush {
|
|||||||
// println(msgInfo.vMsg.toUHexString())
|
// println(msgInfo.vMsg.toUHexString())
|
||||||
// }
|
// }
|
||||||
else -> {
|
else -> {
|
||||||
println("unknown group internal type $internalType , data: " + this.readBytes().toUHexString() + " ")
|
bot.network.logger.debug { "unknown group internal type $internalType , data: " + this.readBytes().toUHexString() + " " }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msgInfo.shMsgType.toInt() == 528 -> {
|
msgInfo.shMsgType.toInt() == 528 -> {
|
||||||
println("unknown shtype ${msgInfo.shMsgType.toInt()}")
|
bot.network.logger.debug { "unknown shtype ${msgInfo.shMsgType.toInt()}" }
|
||||||
// val content = msgInfo.vMsg.loadAs(OnlinePushPack.MsgType0x210.serializer())
|
// val content = msgInfo.vMsg.loadAs(OnlinePushPack.MsgType0x210.serializer())
|
||||||
// println(content.contentToString())
|
// println(content.contentToString())
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
println("unknown shtype ${msgInfo.shMsgType.toInt()}")
|
bot.network.logger.debug { "unknown shtype ${msgInfo.shMsgType.toInt()}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user