|
|
@@ -445,7 +445,7 @@ void CServer::SendMessageToClient()
|
|
|
{
|
|
|
m_map_mutex.unlock();
|
|
|
|
|
|
- LOG_INFO("can not find client, save to db, username:"<<username.c_str());
|
|
|
+ //LOG_INFO("can not find client, save to db, username:"<<username.c_str());
|
|
|
|
|
|
//客户端不在线,操作存数据库
|
|
|
AddMessageToDB(username, due_time, data);
|
|
|
@@ -460,7 +460,7 @@ void CServer::SendMessageToClient()
|
|
|
bool ret = session->send_message(data);
|
|
|
if (ret == false)
|
|
|
{
|
|
|
- LOG_INFO("send to client fail, save it to db, username:" << username.c_str());
|
|
|
+ //LOG_INFO("send to client fail, save it to db, username:" << username.c_str());
|
|
|
//如果发送失败了,把消息存回到数据库
|
|
|
AddMessageToDB(username, due_time, data);
|
|
|
}
|
|
|
@@ -485,4 +485,4 @@ void CServer::HandleCleanupDueMessage()
|
|
|
|
|
|
CSystem::my_sleep(60 * 30);
|
|
|
}
|
|
|
-}
|
|
|
+}
|