Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan committed Apr 9, 2015
1 parent 1ad5c63 commit faeca98
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/sofa/pbrpc/dynamic_rpc_channel_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ RpcErrorCode DynamicRpcChannelImpl::ChooseServer(ServerContextPtr& choosed_serve
}
else {
#if defined( LOG )
LOF(ERROR) << "ChooseServer(): no server choosed: try_num=" << try_num
LOG(ERROR) << "ChooseServer(): no server choosed: try_num=" << try_num
<< ", live_map_size=" << _live_map.size()
<< ", unlive_map_size=" << _unlive_map.size();
#else
Expand Down
2 changes: 0 additions & 2 deletions src/sofa/pbrpc/http_rpc_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ bool HTTPRpcRequest::ParsePath()
_decoded_path = StringUtils::decode_url(_path,
(StringUtils::E_DECODE_RESERVED_CHAR | StringUtils::E_DECODE_PERCENT_SIGN_CHAR));
#if defined( LOG )
LOG(DEBUG) << "ParsePath(): path=[" << _path << "]"
<< ", decoded_path=[" << _decoded_path << "]";
#else
SLOG(DEBUG, "ParsePath(): path=[%s], decoded_path=[%s]",
_path.c_str(), _decoded_path.c_str());
Expand Down
5 changes: 0 additions & 5 deletions src/sofa/pbrpc/rpc_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ void RpcRequest::OnCallMethodDone(
else
{
#if defined( LOG )
LOG(DEBUG) << "OnCallMethodDone(): " << RpcEndpointToString(_remote_endpoint)
<< " {" << cntl->SequenceId() << "}"
<< ": call method \"" << cntl->MethodId() << "\" succeed";
#else
SLOG(DEBUG, "OnCallMethodDone(): %s {%lu}: call method \"%s\" succeed",
RpcEndpointToString(_remote_endpoint).c_str(), cntl->SequenceId(),
Expand Down Expand Up @@ -160,8 +157,6 @@ void RpcRequest::OnSendResponseDone(
if (error_code == RPC_SUCCESS)
{
#if defined( LOG )
LOG(DEBUG) << "OnSendResponseDone(): " << RpcEndpointToString(_remote_endpoint)
<< " {" << SequenceId() << "}: send succeed";
#else
SLOG(DEBUG, "OnSendResponseDone(): %s {%lu}: send succeed",
RpcEndpointToString(_remote_endpoint).c_str(), SequenceId());
Expand Down

0 comments on commit faeca98

Please sign in to comment.