Replace "\n" as """\n""" for log

This commit is contained in:
Him188 2020-02-07 09:01:28 +08:00
parent 6d0972dd54
commit 1b3065a44c

View File

@ -366,7 +366,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
if (packet is Cancellable && packet.cancelled) return
}
bot.logger.info("Received packet: $packet")
bot.logger.info("Received packet: ${packet.toString().replace("\n", """\n""")}")
packetFactory?.run {
when (this) {