🌈 style(日志):修改日志打印

This commit is contained in:
huheng@kylinos.cn 2023-05-15 13:53:10 +08:00
parent 6e9f557a9a
commit dad3d95de6
1 changed files with 6 additions and 6 deletions

View File

@ -544,9 +544,9 @@ void ConnectionService::onHeartbeatReadyRead()
sendHeartbeat(true);
} else {
// 当前为服务端端,收到客户端心跳回复,重置标志位
#ifdef NDEBUG
#ifdef DEBUG
qDebug() << "receive heartbeat<<<<<<<<<<<<<<<<<<<<<<<<<<<";
#endif // !NDEBUG
#endif // !DEBUG
m_isAgainSendHeartbeat = true;
m_isSurvival = true;
}
@ -960,15 +960,15 @@ void ConnectionService::sendHeartbeat(bool isServer)
ReplyMessage replyMessage;
std::string str = "";
if (isServer) {
#ifdef NDEBUG
#ifdef DEBUG
qDebug() << "URGENTSERVER>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>";
#endif // !NDEBUG
#endif // !DEBUG
replyMessage.set_status(ReplyMessage::URGENTSERVER);
replyMessage.SerializeToString(&str);
} else {
#ifdef NDEBUG
#ifdef DEBUG
qDebug() << "URGENTCLIENT>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>";
#endif // !NDEBUG
#endif // !DEBUG
replyMessage.set_status(ReplyMessage::URGENTCLIENT);
replyMessage.SerializeToString(&str);
}