From 51dc544f2bf11b40e52dcbe9eb73686df6b41a25 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 7 Jun 2011 23:33:04 +0900 Subject: [PATCH] Logged invoked RPC method name. --- src/HttpServerBodyCommand.cc | 2 ++ 1 file changed, 2 insertions(+) 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 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);