Skip to content

Commit

Permalink
remove tarsnode useless log
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Nov 27, 2021
1 parent f0c89e5 commit 796180a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions NodeServer/KeepAliveThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -293,7 +293,7 @@ void KeepAliveThread::checkAlive()

map<string, ServerGroup> 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<string, ServerGroup>::const_iterator it = mmServerList.begin();
for (; it != mmServerList.end(); it++)
Expand Down Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions NodeServer/ServerObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ void ServerObject::reportMemProperty()
stream = TC_File::load2str(filename);
if(!stream.empty())
{
NODE_LOG("ReportMemThread")->debug()<<FILE_FUN<<"filename:"<<filename<<",stream:"<<stream<<endl;
// NODE_LOG("ReportMemThread")->debug()<<FILE_FUN<<"filename:"<<filename<<",stream:"<<stream<<endl;
//>>改成上报物理内存
vector<string> vtStatm = TC_Common::sepstr<string>(stream, " ");
if (vtStatm.size() < 2)
Expand All @@ -846,7 +846,7 @@ void ServerObject::reportMemProperty()
if(TC_Common::isdigit(stream))
{
REPORT_MAX(_serverId, _serverId+".memsize", TC_Common::strto<int>(stream) * 4);
NODE_LOG("ReportMemThread")->debug()<<FILE_FUN<<"report_max("<<_serverId<<".memsize,"<<TC_Common::strto<int>(stream)*4<<")OK."<<endl;
NODE_LOG("ReportMemThread")->debug()<<FILE_FUN<<"report_max("<<_serverId<<".memsize,"<<TC_Common::strto<int>(stream)*4<<") OK."<<endl;
return;
}
else
Expand Down

0 comments on commit 796180a

Please sign in to comment.