Skip to content

Commit

Permalink
optimize ObjectProxy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Aug 4, 2024
1 parent 30f1121 commit 7992aaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions servant/libservant/ObjectProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int ObjectProxy::loadLocator()

void ObjectProxy::invoke(ReqMessage * msg)
{
TLOGTARS("[ObjectProxy::invoke, objname:" << _name << ", begin...]" << endl);
TLOGTARS("[ObjectProxy::invoke, servant:" << _servantProxy->tars_full_name() << ", func:"<< msg->request.sFuncName << ", begin...]" << endl);

//选择一个远程服务的Adapter来调用
AdapterProxy * pAdapterProxy = NULL;
Expand All @@ -124,14 +124,14 @@ void ObjectProxy::invoke(ReqMessage * msg)
assert(bRet);

//把数据缓存在obj里面
TLOGTARS("[ObjectProxy::invoke, objname:" << _name << ", select adapter proxy not valid (have not invoke reg)]" << endl);
TLOGTARS("[ObjectProxy::invoke, objname:" << _name << ", func:" << msg->request.sFuncName << ", select adapter proxy not valid (have not invoke reg)]" << endl);

return;
}

if(!pAdapterProxy)
{
TLOGERROR("[ObjectProxy::invoke, objname:"<< _name << ", selectAdapterProxy is null]"<<endl);
TLOGERROR("[ObjectProxy::invoke, objname:"<< _name << ", func:"<< msg->request.sFuncName << ", selectAdapterProxy is null]"<<endl);

msg->response->iRet = TARSADAPTERNULL;

Expand All @@ -150,7 +150,7 @@ void ObjectProxy::invoke(ReqMessage * msg)
assert(bRet);

//把数据缓存在obj里面
TLOGTARS("[ObjectProxy::invoke, " << _name << ", select adapter proxy not connected (have not invoke reg)]" << endl);
TLOGTARS("[ObjectProxy::invoke, " << _name << ", func:"<< msg->request.sFuncName << ", select adapter proxy not connected (have not invoke reg)]" << endl);
return;
}

Expand Down

0 comments on commit 7992aaf

Please sign in to comment.