summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-07 23:33:04 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-06-07 23:33:04 +0900
commit51dc544f2bf11b40e52dcbe9eb73686df6b41a25 (patch)
treefc593414b18411b44d9ff91a8c8dc96730de42ab /src
parente958f5dab36f5b224e7be69c75e93359ba20f487 (diff)
Logged invoked RPC method name.
Diffstat (limited to 'src')
-rw-r--r--src/HttpServerBodyCommand.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc
index de5d1684..268cc31b 100644
--- a/src/HttpServerBodyCommand.cc
+++ b/src/HttpServerBodyCommand.cc
@@ -187,6 +187,7 @@ HttpServerBodyCommand::processJsonRpcRequest(const Dict* jsondict)
return createJsonRpcErrorResponse(-32601, "Method not found.", id);
}
method->setJsonRpc(true);
+ A2_LOG_INFO(fmt("Executing RPC method %s", req.methodName.c_str()));
rpc::RpcResponse res = method->execute(req, e_);
return res;
}
@@ -216,6 +217,7 @@ bool HttpServerBodyCommand::execute()
rpc::XmlRpcRequestProcessor().parseMemory(httpServer_->getBody());
SharedHandle<rpc::RpcMethod> method =
rpc::RpcMethodFactory::create(req.methodName);
+ A2_LOG_INFO(fmt("Executing RPC method %s", req.methodName.c_str()));
rpc::RpcResponse res = method->execute(req, e_);
bool gzip = httpServer_->supportsGZip();
std::string responseData = res.toXml(gzip);