Skip to content

Commit 20acca7

Browse files
committed
屏蔽一些log的输出, 想要输出请打开配置选项.
1 parent d0d553a commit 20acca7

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

kbe/src/lib/client_lib/entity.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ void Entity::onRemoteMethodCall(Mercury::Channel* pChannel, MemoryStream& s)
146146
return;
147147
}
148148

149-
DEBUG_MSG(boost::format("Entity::onRemoteMethodCall: entityID %1%, methodType %2%.\n") %
149+
if(g_debugEntity)
150+
{
151+
DEBUG_MSG(boost::format("Entity::onRemoteMethodCall: entityID %1%, methodType %2%.\n") %
150152
id_ % utype);
153+
}
151154

152155
PyObject* pyFunc = PyObject_GetAttrString(this, const_cast<char*>
153156
(md->getName()));

kbe/src/server/baseapp/base.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,11 @@ void Base::onRemoteMethodCall(Mercury::Channel* pChannel, MemoryStream& s)
717717
}
718718
}
719719

720-
DEBUG_MSG(boost::format("Base::onRemoteMethodCall: %1%, %4%::%2%(utype=%3%).\n") %
721-
id_ % (md ? md->getName() : "unknown") % utype % this->getScriptName());
720+
if(g_debugEntity)
721+
{
722+
DEBUG_MSG(boost::format("Base::onRemoteMethodCall: %1%, %4%::%2%(utype=%3%).\n") %
723+
id_ % (md ? md->getName() : "unknown") % utype % this->getScriptName());
724+
}
722725

723726
md->currCallerID(this->getID());
724727
PyObject* pyFunc = PyObject_GetAttrString(this, const_cast<char*>

kbe/src/server/cellapp/entity.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,11 @@ void Entity::onRemoteMethodCall_(MethodDescription* md, MemoryStream& s)
579579
return;
580580
}
581581

582-
DEBUG_MSG(boost::format("Entity::onRemoteMethodCall: %1%, %4%::%2%(utype=%3%).\n") %
583-
id_ % md->getName() % md->getUType() % this->getScriptName());
582+
if(g_debugEntity)
583+
{
584+
DEBUG_MSG(boost::format("Entity::onRemoteMethodCall: %1%, %4%::%2%(utype=%3%).\n") %
585+
id_ % md->getName() % md->getUType() % this->getScriptName());
586+
}
584587

585588
md->currCallerID(this->getID());
586589

0 commit comments

Comments
 (0)