From 796180ad33e67f28f13bf6aef6869900340c3c72 Mon Sep 17 00:00:00 2001 From: ruanshudong Date: Sat, 27 Nov 2021 21:18:50 +0800 Subject: [PATCH] remove tarsnode useless log --- NodeServer/KeepAliveThread.cpp | 6 +++--- NodeServer/ServerObject.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NodeServer/KeepAliveThread.cpp b/NodeServer/KeepAliveThread.cpp index bd01e4af..b83668a1 100644 --- a/NodeServer/KeepAliveThread.cpp +++ b/NodeServer/KeepAliveThread.cpp @@ -139,7 +139,7 @@ void KeepAliveThread::run() NODE_LOG("KeepAliveThread")->error() << FILE_FUN << "catch unkown exception|" << endl; } - NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "run use:" << TNOWMS - startMs << " ms, wait:" << _monitorInterval << "ms" << endl; + // NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "run use:" << TNOWMS - startMs << " ms, wait:" << _monitorInterval << "ms" << endl; _latestKeepAliveTime = TNOW; @@ -293,7 +293,7 @@ void KeepAliveThread::checkAlive() map mmServerList = ServerFactory::getInstance()->getAllServers(); - NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "server list size:" << mmServerList.size() << ", synInterval:" << _synInterval << endl; + // NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "server list size:" << mmServerList.size() << ", synInterval:" << _synInterval << endl; map::const_iterator it = mmServerList.begin(); for (; it != mmServerList.end(); it++) @@ -364,5 +364,5 @@ void KeepAliveThread::checkAlive() synStat(); } - NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "checkAlive use:" << TNOWMS - startMs << " ms" << endl; + // NODE_LOG("KeepAliveThread")->debug() << FILE_FUN << "checkAlive use:" << TNOWMS - startMs << " ms" << endl; } diff --git a/NodeServer/ServerObject.cpp b/NodeServer/ServerObject.cpp index a09560da..d56d10cf 100644 --- a/NodeServer/ServerObject.cpp +++ b/NodeServer/ServerObject.cpp @@ -831,7 +831,7 @@ void ServerObject::reportMemProperty() stream = TC_File::load2str(filename); if(!stream.empty()) { - NODE_LOG("ReportMemThread")->debug()<debug()<>改成上报物理内存 vector vtStatm = TC_Common::sepstr(stream, " "); if (vtStatm.size() < 2) @@ -846,7 +846,7 @@ void ServerObject::reportMemProperty() if(TC_Common::isdigit(stream)) { REPORT_MAX(_serverId, _serverId+".memsize", TC_Common::strto(stream) * 4); - NODE_LOG("ReportMemThread")->debug()<(stream)*4<<")OK."<debug()<(stream)*4<<") OK."<