Add warning log

This commit is contained in:
Him188 2020-02-19 14:21:30 +08:00
parent d1153e3c02
commit 171929d938

View File

@ -127,7 +127,7 @@ internal class MessageSvc {
val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer()) val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer())
if (resp.result != 0) { if (resp.result != 0) {
// println("!!! Result=${resp.result} !!!: " + resp.contentToString()) bot.network.logger.warning("MessageSvc.PushNotify: result != 0, result = ${resp.result}, errorMsg=${resp.errmsg}")
return EmptyResponse return EmptyResponse
} }
@ -149,7 +149,7 @@ internal class MessageSvc {
val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin) val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin)
if (msg.msgHead.authUin == bot.uin) { if (msg.msgHead.authUin == bot.uin) {
if (group != null) { if (group != null) {
error("group is not null while bot is invited to the group") return@mapNotNull null
} }
// 新群 // 新群