Permalink
Browse files

jsonrpc: add debug logging to be able to track requests

  • Loading branch information...
1 parent 07c08aa commit f1ae0b657e6a3e55b2580938e4232e44589e2858 @Montellese Montellese committed Dec 9, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/interfaces/json-rpc/JSONRPC.cpp
@@ -152,6 +152,7 @@ CStdString CJSONRPC::MethodCall(const CStdString &inputString, ITransportLayer *
CVariant inputroot, outputroot, result;
bool hasResponse = false;
+ CLog::Log(LOGDEBUG, "JSONRPC: Incoming request: %s", inputString.c_str());
inputroot = CJSONVariantParser::Parse((unsigned char *)inputString.c_str(), inputString.length());
if (!inputroot.isNull())
{
@@ -206,6 +207,7 @@ bool CJSONRPC::HandleMethodCall(const CVariant& request, CVariant& response, ITr
JSONRPC::MethodCall method;
CVariant params;
+ CLog::Log(LOGDEBUG, "JSONRPC: Calling %s", methodName.c_str());
if ((errorCode = CJSONServiceDescription::CheckCall(methodName, request["params"], transport, client, isNotification, method, params)) == OK)
errorCode = method(methodName, transport, client, params, result);
else

0 comments on commit f1ae0b6

Please sign in to comment.